Browse Source

Merge "Remove redundant @SuppressWarnings("unused")"

stable-4.10
Christian Halstrick 7 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
6f730d0bb6
  1. 12
      org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/RecordingLogger.java
  2. 2
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Status.java

12
org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/RecordingLogger.java

@ -163,9 +163,7 @@ public class RecordingLogger implements Logger {
* @param arg0 * @param arg0
* @param arg1 * @param arg1
*/ */
public void debug(@SuppressWarnings("unused") String msg, public void debug(String msg, Object arg0, Object arg1) {
@SuppressWarnings("unused") Object arg0,
@SuppressWarnings("unused") Object arg1) {
// Ignore (not relevant to test failures) // Ignore (not relevant to test failures)
} }
@ -181,7 +179,7 @@ public class RecordingLogger implements Logger {
* @param msg * @param msg
* debug message * debug message
*/ */
public void debug(@SuppressWarnings("unused") String msg) { public void debug(String msg) {
// Ignore (not relevant to test failures) // Ignore (not relevant to test failures)
} }
@ -192,9 +190,7 @@ public class RecordingLogger implements Logger {
* @param arg0 * @param arg0
* @param arg1 * @param arg1
*/ */
public void info(@SuppressWarnings("unused") String msg, public void info(String msg, Object arg0, Object arg1) {
@SuppressWarnings("unused") Object arg0,
@SuppressWarnings("unused") Object arg1) {
// Ignore (not relevant to test failures) // Ignore (not relevant to test failures)
} }
@ -203,7 +199,7 @@ public class RecordingLogger implements Logger {
* *
* @param msg * @param msg
*/ */
public void info(@SuppressWarnings("unused") String msg) { public void info(String msg) {
// Ignore (not relevant to test failures) // Ignore (not relevant to test failures)
} }

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

@ -327,7 +327,7 @@ class Status extends TextBuiltin {
protected int printList(String status1, String status2, String status3, protected int printList(String status1, String status2, String status3,
Collection<String> list, Collection<String> set1, Collection<String> list, Collection<String> set1,
Collection<String> set2, Collection<String> set2,
@SuppressWarnings("unused") Collection<String> set3) Collection<String> set3)
throws IOException { throws IOException {
List<String> sortedList = new ArrayList<>(list); List<String> sortedList = new ArrayList<>(list);
java.util.Collections.sort(sortedList); java.util.Collections.sort(sortedList);

Loading…
Cancel
Save