Browse Source

cleanup: Get rid of some unused-warnings

Change-Id: Ia3e82682781c6b5bc3141b3e27db67b93c3162cd
stable-2.0
Robin Rosenberg 13 years ago
parent
commit
66e8cd4eec
  1. 4
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Fetch.java
  2. 2
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Push.java

4
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Fetch.java

@ -65,7 +65,7 @@ class Fetch extends AbstractFetchCommand {
private Boolean fsck;
@Option(name = "--no-fsck")
void nofsck(final boolean ignored) {
void nofsck(@SuppressWarnings("unused") final boolean ignored) {
fsck = Boolean.FALSE;
}
@ -79,7 +79,7 @@ class Fetch extends AbstractFetchCommand {
private Boolean thin;
@Option(name = "--no-thin")
void nothin(final boolean ignored) {
void nothin(@SuppressWarnings("unused") final boolean ignored) {
thin = Boolean.FALSE;
}

2
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Push.java

@ -89,7 +89,7 @@ class Push extends TextBuiltin {
private boolean thin = Transport.DEFAULT_PUSH_THIN;
@Option(name = "--no-thin")
void nothin(final boolean ignored) {
void nothin(@SuppressWarnings("unused") final boolean ignored) {
thin = false;
}

Loading…
Cancel
Save