]> source.dussan.org Git - jgit.git/commitdiff
Remove redundant @SuppressWarnings("unused") 85/113585/1
authorDavid Pursehouse <david.pursehouse@gmail.com>
Mon, 18 Dec 2017 01:19:53 +0000 (10:19 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Mon, 18 Dec 2017 01:19:53 +0000 (10:19 +0900)
These are now redundant since the parameters have javadoc.

Change-Id: I6bfde267e1712ee35871c30c8203c3b4dc5e136a
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/RecordingLogger.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Status.java

index 33b5fc056a19c154a57e47c3b841d1fe1a1a6160..fed063a8fa4ecea556ce0fd7dd806f7fa37e17c7 100644 (file)
@@ -163,9 +163,7 @@ public class RecordingLogger implements Logger {
         * @param arg0
         * @param arg1
         */
-       public void debug(@SuppressWarnings("unused") String msg,
-                                 @SuppressWarnings("unused") Object arg0,
-                                 @SuppressWarnings("unused") Object arg1) {
+       public void debug(String msg, Object arg0, Object arg1) {
                // Ignore (not relevant to test failures)
        }
 
@@ -181,7 +179,7 @@ public class RecordingLogger implements Logger {
         * @param msg
         *            debug message
         */
-       public void debug(@SuppressWarnings("unused") String msg) {
+       public void debug(String msg) {
                // Ignore (not relevant to test failures)
        }
 
@@ -192,9 +190,7 @@ public class RecordingLogger implements Logger {
         * @param arg0
         * @param arg1
         */
-       public void info(@SuppressWarnings("unused") String msg,
-                                @SuppressWarnings("unused") Object arg0,
-                                @SuppressWarnings("unused") Object arg1) {
+       public void info(String msg, Object arg0, Object arg1) {
                // Ignore (not relevant to test failures)
        }
 
@@ -203,7 +199,7 @@ public class RecordingLogger implements Logger {
         *
         * @param msg
         */
-       public void info(@SuppressWarnings("unused") String msg) {
+       public void info(String msg) {
                // Ignore (not relevant to test failures)
        }
 
index 4238f207e0dda071843251f9eb6d1c9aca3632c8..fb2fd7e2351354e14338f631b015c6bb635d2f3f 100644 (file)
@@ -327,7 +327,7 @@ class Status extends TextBuiltin {
        protected int printList(String status1, String status2, String status3,
                        Collection<String> list, Collection<String> set1,
                        Collection<String> set2,
-                       @SuppressWarnings("unused") Collection<String> set3)
+                       Collection<String> set3)
                        throws IOException {
                List<String> sortedList = new ArrayList<>(list);
                java.util.Collections.sort(sortedList);