diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2017-02-09 15:08:47 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2017-02-09 15:10:15 +0900 |
commit | d9d8c507a48e040e3b346a1386b7eac55e2aa345 (patch) | |
tree | 757164291a134e2c49d8634a603d17dc42dcbf85 /org.eclipse.jgit/src/org/eclipse | |
parent | 8fce17a995efa1b1fd91578b47be854fed12b462 (diff) | |
download | jgit-d9d8c507a48e040e3b346a1386b7eac55e2aa345.tar.gz jgit-d9d8c507a48e040e3b346a1386b7eac55e2aa345.zip |
RefLeaseSpec: Fix Eclipse errors
- Remove unused import
- Remove unused private constructor
- Add Javadoc for public constructor
Change-Id: I1253e9fe863ca0f63182461ee87357fbf726ea2e
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/RefLeaseSpec.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefLeaseSpec.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefLeaseSpec.java index 02c3c3cc55..d79e3dea08 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefLeaseSpec.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefLeaseSpec.java @@ -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; } |