From 0b536b111b2d75c1f02232f12298afb0d50e316c Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Sun, 26 May 2013 10:53:15 +0200 Subject: [PATCH] use long instead of int for pushed and pulled changesets --- .../api/AbstractPushOrPullResponse.java | 6 +++--- .../scm/repository/api/PullResponse.java | 20 ++++++++++++++----- .../scm/repository/api/PushResponse.java | 2 +- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/scm-core/src/main/java/sonia/scm/repository/api/AbstractPushOrPullResponse.java b/scm-core/src/main/java/sonia/scm/repository/api/AbstractPushOrPullResponse.java index 85467cc698..5c037a1454 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/AbstractPushOrPullResponse.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/AbstractPushOrPullResponse.java @@ -58,7 +58,7 @@ public abstract class AbstractPushOrPullResponse * * @param pushedChangesetCount */ - public AbstractPushOrPullResponse(int changesetCount) + public AbstractPushOrPullResponse(long changesetCount) { this.changesetCount = changesetCount; } @@ -71,7 +71,7 @@ public abstract class AbstractPushOrPullResponse * * @return */ - public int getChangesetCount() + public long getChangesetCount() { return changesetCount; } @@ -80,5 +80,5 @@ public abstract class AbstractPushOrPullResponse /** Field description */ @XmlElement(name = "changeset-count") - private int changesetCount; + private long changesetCount; } diff --git a/scm-core/src/main/java/sonia/scm/repository/api/PullResponse.java b/scm-core/src/main/java/sonia/scm/repository/api/PullResponse.java index 35d6b108ec..29c7009ea5 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/PullResponse.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/PullResponse.java @@ -26,6 +26,9 @@ * http://bitbucket.org/sdorra/scm-manager * */ + + + package sonia.scm.repository.api; /** @@ -36,13 +39,20 @@ package sonia.scm.repository.api; public final class PullResponse extends AbstractPushOrPullResponse { - public PullResponse() - { - } + /** + * Constructs ... + * + */ + public PullResponse() {} - public PullResponse(int changesetCount) + /** + * Constructs ... + * + * + * @param changesetCount + */ + public PullResponse(long changesetCount) { super(changesetCount); } - } diff --git a/scm-core/src/main/java/sonia/scm/repository/api/PushResponse.java b/scm-core/src/main/java/sonia/scm/repository/api/PushResponse.java index ce0908ca06..1345c2b30d 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/PushResponse.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/PushResponse.java @@ -56,7 +56,7 @@ public final class PushResponse extends AbstractPushOrPullResponse * * @param changesetCount */ - public PushResponse(int changesetCount) + public PushResponse(long changesetCount) { super(changesetCount); }