extend equalsAndHashcode annotation on changeset with callSuper attribute

This commit is contained in:
Eduard Heimbuch
2020-05-06 13:17:21 +02:00
parent 1c23686823
commit a9b9c77333
2 changed files with 15 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ import java.util.List;
*
* @author Sebastian Sdorra
*/
@EqualsAndHashCode
@EqualsAndHashCode(callSuper = true)
public class Changeset extends BasicPropertiesAware implements ModelObject {
private static final long serialVersionUID = -8373308448928993039L;

View File

@@ -25,7 +25,6 @@
package sonia.scm.repository;
import com.google.common.base.Objects;
import lombok.Setter;
import lombok.ToString;
import java.io.Serializable;
@@ -39,7 +38,6 @@ import java.util.List;
* @author Sebastian Sdorra
*/
@ToString
@Setter
public class ChangesetPagingResult implements Iterable<Changeset>, Serializable {
private static final long serialVersionUID = -8678755403658841733L;
@@ -137,4 +135,18 @@ public class ChangesetPagingResult implements Iterable<Changeset>, Serializable
return branchName;
}
void setChangesets(List<Changeset> changesets)
{
this.changesets = changesets;
}
void setTotal(int total)
{
this.total = total;
}
void setBranchName(String branchName) {
this.branchName = branchName;
}
}