remove paths parameter from commit command

This commit is contained in:
Sebastian Sdorra
2012-07-14 16:44:55 +02:00
parent 5d86c7d1cf
commit a76fd0937a
2 changed files with 2 additions and 55 deletions

View File

@@ -33,8 +33,6 @@ package sonia.scm.repository.client.api;
//~--- non-JDK imports --------------------------------------------------------
import com.google.common.collect.Lists;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -77,22 +75,6 @@ public final class CommitCommandBuilder
//~--- methods --------------------------------------------------------------
/**
* Method description
*
*
* @param path
* @param pathes
*
* @return
*/
public CommitCommandBuilder add(String path, String... pathes)
{
request.setPaths(Lists.asList(path, pathes));
return this;
}
/**
* Method description
*

View File

@@ -37,10 +37,6 @@ import com.google.common.base.Objects;
import sonia.scm.repository.Person;
//~--- JDK imports ------------------------------------------------------------
import java.util.List;
/**
*
* @author Sebastian Sdorra
@@ -73,8 +69,7 @@ public final class CommitRequest
final CommitRequest other = (CommitRequest) obj;
return Objects.equal(author, other.author)
&& Objects.equal(message, other.message)
&& Objects.equal(paths, other.paths);
&& Objects.equal(message, other.message);
}
/**
@@ -86,7 +81,7 @@ public final class CommitRequest
@Override
public int hashCode()
{
return Objects.hashCode(author, message, paths);
return Objects.hashCode(author, message);
}
/**
@@ -97,8 +92,6 @@ public final class CommitRequest
{
this.author = null;
this.message = null;
this.paths = null;
}
/**
@@ -114,7 +107,6 @@ public final class CommitRequest
return Objects.toStringHelper(this)
.add("author", author)
.add("message", message)
.add("paths", paths)
.toString();
//J+
}
@@ -143,19 +135,6 @@ public final class CommitRequest
this.message = message;
}
/**
* Method description
*
*
* @param files
*
* @param paths
*/
public void setPaths(List<String> paths)
{
this.paths = paths;
}
//~--- get methods ----------------------------------------------------------
/**
@@ -180,17 +159,6 @@ public final class CommitRequest
return message;
}
/**
* Method description
*
*
* @return
*/
List<String> getPaths()
{
return paths;
}
//~--- fields ---------------------------------------------------------------
/** Field description */
@@ -198,7 +166,4 @@ public final class CommitRequest
/** Field description */
private String message;
/** Field description */
private List<String> paths;
}