chore: fix "unused" warnings (PR #549)

This commit is contained in:
Ahmed Ashour
2019-04-01 14:19:09 +02:00
committed by skylot
parent 1d3e6ecbcf
commit 207ce6cbbe
63 changed files with 86 additions and 90 deletions
@@ -13,7 +13,7 @@ public class TestGenerics extends AbstractTest {
public Class<?>[] classes;
public interface MyComparable<T> {
public int compareTo(T o);
int compareTo(T o);
}
public static class GenericClass implements MyComparable<String> {
@@ -38,9 +38,9 @@ public class TestGenerics extends AbstractTest {
public static Box<Integer> integerBox = new Box<>();
public interface Pair<K, LongGenericType> {
public K getKey();
K getKey();
public LongGenericType getValue();
LongGenericType getValue();
}
public static class OrderedPair<K, V> implements Pair<K, V> {
@@ -133,7 +133,7 @@ public class TestGenerics extends AbstractTest {
public class Node<T extends Comparable<T>> {
private final T data;
private final Node<T> next;
public final Node<T> next;
public Node(T data, Node<T> next) {
this.data = data;
@@ -145,8 +145,8 @@ public class TestGenerics extends AbstractTest {
}
}
private class TestConstructor implements Enumeration<String> {
private final TestGenerics a;
public class TestConstructor implements Enumeration<String> {
public final TestGenerics a;
TestConstructor(TestGenerics a) {
this.a = a;
@@ -2,7 +2,7 @@ package jadx.samples;
public class TestTypeResolver extends AbstractTest {
private final int f1;
public final int f1;
public TestTypeResolver() {
this.f1 = 2;
@@ -21,11 +21,11 @@ public class TestTypeResolver2 extends AbstractTest {
}
}
private static void doPrint(String s1) {
public static void doPrint(String s1) {
fail();
}
private static void doPrint(Integer s1) {
public static void doPrint(Integer s1) {
fail();
}
@@ -43,6 +43,6 @@ public class TestTypeResolver2 extends AbstractTest {
}
public static void main(String[] args) throws Exception {
(new TestTypeResolver2()).testRun();
new TestTypeResolver2().testRun();
}
}