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>
This commit is contained in:
parent
8fce17a995
commit
d9d8c507a4
|
@ -45,8 +45,6 @@
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.eclipse.jgit.internal.JGitText;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Describes the expected value for a ref being pushed.
|
* Describes the expected value for a ref being pushed.
|
||||||
* @since 4.7
|
* @since 4.7
|
||||||
|
@ -60,12 +58,14 @@ public class RefLeaseSpec implements Serializable {
|
||||||
/** Local commitish to get expected value from. */
|
/** Local commitish to get expected value from. */
|
||||||
private final String expected;
|
private final String expected;
|
||||||
|
|
||||||
private RefLeaseSpec(final RefLeaseSpec p) {
|
/**
|
||||||
ref = p.getRef();
|
*
|
||||||
expected = p.getExpected();
|
* @param ref
|
||||||
}
|
* ref being pushed
|
||||||
|
* @param expected
|
||||||
public RefLeaseSpec(final String ref, final String expected) {
|
* the expected value of the ref
|
||||||
|
*/
|
||||||
|
public RefLeaseSpec(String ref, String expected) {
|
||||||
this.ref = ref;
|
this.ref = ref;
|
||||||
this.expected = expected;
|
this.expected = expected;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue