]> source.dussan.org Git - jgit.git/commitdiff
RefLeaseSpec: Fix Eclipse errors 96/90696/1
authorDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 9 Feb 2017 06:08:47 +0000 (15:08 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 9 Feb 2017 06:10:15 +0000 (15:10 +0900)
- Remove unused import

- Remove unused private constructor

- Add Javadoc for public constructor

Change-Id: I1253e9fe863ca0f63182461ee87357fbf726ea2e
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/RefLeaseSpec.java

index 02c3c3cc55b86a1eebf276fa8d6cab2daca065bf..d79e3dea0816e325734020120116072485708acb 100644 (file)
@@ -45,8 +45,6 @@ package org.eclipse.jgit.transport;
 
 import java.io.Serializable;
 
-import org.eclipse.jgit.internal.JGitText;
-
 /**
  * Describes the expected value for a ref being pushed.
  * @since 4.7
@@ -60,12 +58,14 @@ public class RefLeaseSpec implements Serializable {
        /** Local commitish to get expected value from. */
        private final String expected;
 
-       private RefLeaseSpec(final RefLeaseSpec p) {
-               ref = p.getRef();
-               expected = p.getExpected();
-       }
-
-       public RefLeaseSpec(final String ref, final String expected) {
+       /**
+        *
+        * @param ref
+        *            ref being pushed
+        * @param expected
+        *            the expected value of the ref
+        */
+       public RefLeaseSpec(String ref, String expected) {
                this.ref = ref;
                this.expected = expected;
        }