aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/Jassist150.java1
-rw-r--r--src/test/Test.java1
-rw-r--r--src/test/VisibleTop.java1
-rw-r--r--src/test/VisibleTop2.java1
-rw-r--r--src/test/javassist/ClassPoolBench.java1
-rw-r--r--src/test/javassist/JvstTest.java1
-rw-r--r--src/test/javassist/JvstTest2.java1
-rw-r--r--src/test/javassist/JvstTest3.java1
-rw-r--r--src/test/javassist/JvstTest4.java1
-rw-r--r--src/test/javassist/JvstTest5.java1
-rw-r--r--src/test/javassist/LoaderTestByRandall.java1
-rw-r--r--src/test/javassist/SetterTest.java1
-rw-r--r--src/test/javassist/bytecode/BytecodeTest.java1
-rw-r--r--src/test/javassist/bytecode/CodeAnalyzerTest.java1
-rw-r--r--src/test/javassist/bytecode/InsertGap0.java3
-rw-r--r--src/test/javassist/bytecode/StackMapTest.java1
-rw-r--r--src/test/javassist/compiler/CompTest.java1
-rw-r--r--src/test/javassist/proxyfactory/ProxyFactoryTest.java1
-rw-r--r--src/test/javassist/proxyfactory/Tester.java1
-rw-r--r--src/test/test/javassist/bytecode/analysis/AnalyzerTest.java1
-rw-r--r--src/test/test/javassist/convert/ArrayAccessReplaceTest.java1
-rw-r--r--src/test/test/javassist/proxy/JBPAPP9257Test.java1
-rw-r--r--src/test/test/javassist/proxy/ProxyCacheGCTest.java1
-rw-r--r--src/test/test/javassist/proxy/ProxyFactoryCompatibilityTest.java1
-rw-r--r--src/test/test/javassist/proxy/ProxySerializationTest.java1
-rw-r--r--src/test/test/javassist/proxy/ProxySimpleTest.java1
-rw-r--r--src/test/test/javassist/tools/DummyClass.java1
-rw-r--r--src/test/test1/FieldMod.java1
-rw-r--r--src/test/test1/Howard.java1
-rw-r--r--src/test/test1/Proceed.java1
-rw-r--r--src/test/test1/RenameClass.java1
-rw-r--r--src/test/test2/AddMethod.java1
-rw-r--r--src/test/test2/Anon.java1
-rw-r--r--src/test/test2/Brennan.java1
-rw-r--r--src/test/test2/Inner.java1
-rw-r--r--src/test/test2/InsertLocal.java1
-rw-r--r--src/test/test2/Nested.java1
-rw-r--r--src/test/test2/Nested2.java1
-rw-r--r--src/test/test2/Nested3.java1
-rw-r--r--src/test/test2/Nested4.java1
-rw-r--r--src/test/test2/NewArray.java1
-rw-r--r--src/test/test2/NewExprInTry.java2
-rw-r--r--src/test/test2/NewExprTry.java1
-rw-r--r--src/test/test2/NewOp.java1
-rw-r--r--src/test/test3/Enhancer.java1
-rw-r--r--src/test/test3/Erasure.java1
-rw-r--r--src/test/test3/FieldAccessType.java1
-rw-r--r--src/test/test3/GetMethods.java2
-rw-r--r--src/test/test3/MethodRedirect.java1
-rw-r--r--src/test/test3/NestedClass.java1
-rw-r--r--src/test/test3/NewExprTryCatch.java1
-rw-r--r--src/test/test3/ReplaceNew.java1
-rw-r--r--src/test/test3/Visible.java2
-rw-r--r--src/test/testproxy/ProxyFactoryPerformanceTest.java2
-rw-r--r--src/test/testproxy/ProxyTester.java1
-rw-r--r--src/test/testproxy/Target2.java1
-rw-r--r--src/test/testproxy/sub/TargetSuper.java1
57 files changed, 63 insertions, 0 deletions
diff --git a/src/test/Jassist150.java b/src/test/Jassist150.java
index d3945069..2d57da06 100644
--- a/src/test/Jassist150.java
+++ b/src/test/Jassist150.java
@@ -6,6 +6,7 @@ import javassist.NotFoundException;
import javassist.expr.ExprEditor;
import javassist.expr.MethodCall;
+@SuppressWarnings("unused")
public class Jassist150 {
public static final String BASE_PATH = "./";
public static final String JAVASSIST_JAR = BASE_PATH + "javassist.jar";
diff --git a/src/test/Test.java b/src/test/Test.java
index b01a6211..9907406d 100644
--- a/src/test/Test.java
+++ b/src/test/Test.java
@@ -2,6 +2,7 @@ import java.util.ArrayList;
import java.util.List;
import javassist.*;
+@SuppressWarnings("unused")
class InvalidStackMapFrame {
public void bytecodeVerifyError1() {
diff --git a/src/test/VisibleTop.java b/src/test/VisibleTop.java
index 6430bd70..0bb6161f 100644
--- a/src/test/VisibleTop.java
+++ b/src/test/VisibleTop.java
@@ -1,3 +1,4 @@
+@SuppressWarnings("unused")
public class VisibleTop {
public int pub;
protected int pro;
diff --git a/src/test/VisibleTop2.java b/src/test/VisibleTop2.java
index 93fed9da..a09a1396 100644
--- a/src/test/VisibleTop2.java
+++ b/src/test/VisibleTop2.java
@@ -1,3 +1,4 @@
+@SuppressWarnings("unused")
public class VisibleTop2 {
public int pub;
protected int pro;
diff --git a/src/test/javassist/ClassPoolBench.java b/src/test/javassist/ClassPoolBench.java
index d3cb6b2d..bf71051c 100644
--- a/src/test/javassist/ClassPoolBench.java
+++ b/src/test/javassist/ClassPoolBench.java
@@ -24,6 +24,7 @@ public class ClassPoolBench {
cc.detach();
}
+ @SuppressWarnings("rawtypes")
public static void accessAll(String filename) throws Exception {
ZipFile zip = new ZipFile(filename);
Enumeration files = zip.entries();
diff --git a/src/test/javassist/JvstTest.java b/src/test/javassist/JvstTest.java
index d660a335..c6825fd0 100644
--- a/src/test/javassist/JvstTest.java
+++ b/src/test/javassist/JvstTest.java
@@ -7,6 +7,7 @@ import javassist.bytecode.*;
import javassist.expr.*;
import javassist.runtime.*;
+@SuppressWarnings({"rawtypes","unused", "resource"})
public class JvstTest extends JvstTestRoot {
public static boolean java9;
diff --git a/src/test/javassist/JvstTest2.java b/src/test/javassist/JvstTest2.java
index 12bce5e4..117560c0 100644
--- a/src/test/javassist/JvstTest2.java
+++ b/src/test/javassist/JvstTest2.java
@@ -10,6 +10,7 @@ import java.lang.reflect.Method;
import javassist.expr.*;
+@SuppressWarnings({"rawtypes","unused"})
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class JvstTest2 extends JvstTestRoot {
public JvstTest2(String name) {
diff --git a/src/test/javassist/JvstTest3.java b/src/test/javassist/JvstTest3.java
index 056df5c2..47131a93 100644
--- a/src/test/javassist/JvstTest3.java
+++ b/src/test/javassist/JvstTest3.java
@@ -5,6 +5,7 @@ import javassist.bytecode.annotation.*;
import javassist.expr.*;
import test3.*;
+@SuppressWarnings({"rawtypes","unchecked","unused"})
public class JvstTest3 extends JvstTestRoot {
public JvstTest3(String name) {
super(name);
diff --git a/src/test/javassist/JvstTest4.java b/src/test/javassist/JvstTest4.java
index e1ead7dd..187abb3d 100644
--- a/src/test/javassist/JvstTest4.java
+++ b/src/test/javassist/JvstTest4.java
@@ -13,6 +13,7 @@ import javassist.bytecode.*;
import javassist.bytecode.annotation.Annotation;
import javassist.expr.*;
+@SuppressWarnings({"rawtypes","unchecked","unused"})
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class JvstTest4 extends JvstTestRoot {
public JvstTest4(String name) {
diff --git a/src/test/javassist/JvstTest5.java b/src/test/javassist/JvstTest5.java
index 76d0c1a2..578abfb2 100644
--- a/src/test/javassist/JvstTest5.java
+++ b/src/test/javassist/JvstTest5.java
@@ -12,6 +12,7 @@ import javassist.bytecode.InnerClassesAttribute;
import javassist.expr.ExprEditor;
import javassist.expr.MethodCall;
+@SuppressWarnings({"rawtypes","unchecked","unused"})
public class JvstTest5 extends JvstTestRoot {
public JvstTest5(String name) {
super(name);
diff --git a/src/test/javassist/LoaderTestByRandall.java b/src/test/javassist/LoaderTestByRandall.java
index 1b8825f6..04e05cd8 100644
--- a/src/test/javassist/LoaderTestByRandall.java
+++ b/src/test/javassist/LoaderTestByRandall.java
@@ -11,6 +11,7 @@ import junit.framework.TestCase;
/**
* @author brandall
*/
+@SuppressWarnings({"rawtypes","unused"})
public class LoaderTestByRandall extends TestCase {
ClassPool cp;
diff --git a/src/test/javassist/SetterTest.java b/src/test/javassist/SetterTest.java
index a989d39a..44eec140 100644
--- a/src/test/javassist/SetterTest.java
+++ b/src/test/javassist/SetterTest.java
@@ -3,6 +3,7 @@ import java.lang.reflect.Method;
import junit.framework.TestCase;
+@SuppressWarnings({"rawtypes","unchecked"})
public class SetterTest extends TestCase {
ClassPool pool;
diff --git a/src/test/javassist/bytecode/BytecodeTest.java b/src/test/javassist/bytecode/BytecodeTest.java
index a9b6e538..5ddf5d5b 100644
--- a/src/test/javassist/bytecode/BytecodeTest.java
+++ b/src/test/javassist/bytecode/BytecodeTest.java
@@ -7,6 +7,7 @@ import javassist.*;
import javassist.bytecode.annotation.*;
import javassist.bytecode.SignatureAttribute.*;
+@SuppressWarnings("unused")
public class BytecodeTest extends TestCase {
public static final String PATH = JvstTest.PATH;
private ClassPool loader, dloader;
diff --git a/src/test/javassist/bytecode/CodeAnalyzerTest.java b/src/test/javassist/bytecode/CodeAnalyzerTest.java
index 4f115687..b6b33189 100644
--- a/src/test/javassist/bytecode/CodeAnalyzerTest.java
+++ b/src/test/javassist/bytecode/CodeAnalyzerTest.java
@@ -5,6 +5,7 @@ import java.util.Enumeration;
import java.util.List;
import java.io.*;
+@SuppressWarnings({"rawtypes","resource"})
public class CodeAnalyzerTest {
public static void main(String[] args) throws Exception {
ZipFile zfile = new ZipFile(args[0]);
diff --git a/src/test/javassist/bytecode/InsertGap0.java b/src/test/javassist/bytecode/InsertGap0.java
index 6a034141..824b9305 100644
--- a/src/test/javassist/bytecode/InsertGap0.java
+++ b/src/test/javassist/bytecode/InsertGap0.java
@@ -2,6 +2,7 @@ package javassist.bytecode;
import javassist.*;
+@SuppressWarnings("unused")
final class Gap0Example {
public static int counter = 1;
@@ -70,6 +71,7 @@ final class Gap0Example {
}
}
+@SuppressWarnings("unused")
final class Gap0Example2 {
public static int counter = 1;
@@ -155,6 +157,7 @@ final class Gap0Example2 {
}
}
+@SuppressWarnings({"rawtypes","unchecked","unused"})
public final class InsertGap0 extends JvstTestRoot {
public InsertGap0(String name) {
super(name);
diff --git a/src/test/javassist/bytecode/StackMapTest.java b/src/test/javassist/bytecode/StackMapTest.java
index 77d827be..153f75ac 100644
--- a/src/test/javassist/bytecode/StackMapTest.java
+++ b/src/test/javassist/bytecode/StackMapTest.java
@@ -21,6 +21,7 @@ import javassist.bytecode.stackmap.MapMaker;
import javassist.bytecode.stackmap.TypeData;
import junit.framework.TestCase;
+@SuppressWarnings({"rawtypes","unused"})
public class StackMapTest extends TestCase {
public static final String PATH = JvstTest.PATH;
private ClassPool loader, dloader;
diff --git a/src/test/javassist/compiler/CompTest.java b/src/test/javassist/compiler/CompTest.java
index 158552e3..4154935f 100644
--- a/src/test/javassist/compiler/CompTest.java
+++ b/src/test/javassist/compiler/CompTest.java
@@ -125,6 +125,7 @@ class Print{
public static int k;
}
+@SuppressWarnings({"rawtypes","unchecked"})
class HelloAspect{
List list;
diff --git a/src/test/javassist/proxyfactory/ProxyFactoryTest.java b/src/test/javassist/proxyfactory/ProxyFactoryTest.java
index dd52619d..3189b568 100644
--- a/src/test/javassist/proxyfactory/ProxyFactoryTest.java
+++ b/src/test/javassist/proxyfactory/ProxyFactoryTest.java
@@ -11,6 +11,7 @@ import java.lang.reflect.Method;
/**
* <a href="mailto:struberg@yahoo.de">Mark Struberg</a>
*/
+@SuppressWarnings({"rawtypes","unchecked","unused"})
public class ProxyFactoryTest extends TestCase {
public void testMethodHandlers() throws Exception {
ProxyFactory fact = new ProxyFactory();
diff --git a/src/test/javassist/proxyfactory/Tester.java b/src/test/javassist/proxyfactory/Tester.java
index 7d484ecb..874fba1e 100644
--- a/src/test/javassist/proxyfactory/Tester.java
+++ b/src/test/javassist/proxyfactory/Tester.java
@@ -14,6 +14,7 @@ class Hand implements java.io.Serializable {
int getHandler() { return 3; }
}
+@SuppressWarnings({"rawtypes","unchecked","resource"})
public class Tester extends TestCase {
static class MHandler implements MethodHandler, java.io.Serializable {
/** default serialVersionUID */
diff --git a/src/test/test/javassist/bytecode/analysis/AnalyzerTest.java b/src/test/test/javassist/bytecode/analysis/AnalyzerTest.java
index 0337cbf8..b76ff0e7 100644
--- a/src/test/test/javassist/bytecode/analysis/AnalyzerTest.java
+++ b/src/test/test/javassist/bytecode/analysis/AnalyzerTest.java
@@ -363,6 +363,7 @@ public class AnalyzerTest extends TestCase {
}
+ @SuppressWarnings("rawtypes")
public void reusedLocalMerge() {
ArrayList list = new ArrayList();
try {
diff --git a/src/test/test/javassist/convert/ArrayAccessReplaceTest.java b/src/test/test/javassist/convert/ArrayAccessReplaceTest.java
index 58ea8357..d81f220d 100644
--- a/src/test/test/javassist/convert/ArrayAccessReplaceTest.java
+++ b/src/test/test/javassist/convert/ArrayAccessReplaceTest.java
@@ -147,6 +147,7 @@ public class ArrayAccessReplaceTest extends TestCase {
}
}
+ @SuppressWarnings({"rawtypes","unchecked"})
public static class Echo {
public static Map byteMap = new HashMap();
public static Map charMap = new HashMap();
diff --git a/src/test/test/javassist/proxy/JBPAPP9257Test.java b/src/test/test/javassist/proxy/JBPAPP9257Test.java
index 3549f2df..773e18b0 100644
--- a/src/test/test/javassist/proxy/JBPAPP9257Test.java
+++ b/src/test/test/javassist/proxy/JBPAPP9257Test.java
@@ -8,6 +8,7 @@ import javassist.util.proxy.ProxyObject;
import javassist.util.proxy.Proxy;
import junit.framework.TestCase;
+@SuppressWarnings({"rawtypes","unchecked"})
public class JBPAPP9257Test extends TestCase {
public void testGetHandler() throws Exception {
ProxyFactory f = new ProxyFactory();
diff --git a/src/test/test/javassist/proxy/ProxyCacheGCTest.java b/src/test/test/javassist/proxy/ProxyCacheGCTest.java
index e4331bbd..97b7281d 100644
--- a/src/test/test/javassist/proxy/ProxyCacheGCTest.java
+++ b/src/test/test/javassist/proxy/ProxyCacheGCTest.java
@@ -11,6 +11,7 @@ import junit.framework.TestCase;
* test which checks that proxy classes are not retained after their classloader is released.
* this is a before and after test which validates JASSIST-104
*/
+@SuppressWarnings({"rawtypes","unchecked"})
public class ProxyCacheGCTest extends TestCase
{
/**
diff --git a/src/test/test/javassist/proxy/ProxyFactoryCompatibilityTest.java b/src/test/test/javassist/proxy/ProxyFactoryCompatibilityTest.java
index 634e6c14..861abb72 100644
--- a/src/test/test/javassist/proxy/ProxyFactoryCompatibilityTest.java
+++ b/src/test/test/javassist/proxy/ProxyFactoryCompatibilityTest.java
@@ -16,6 +16,7 @@ import java.lang.reflect.Method;
* automatically disabled if this legacy api is used. it also exercises the new style
* api, ensuring that caching works correctly with this model.
*/
+@SuppressWarnings({"rawtypes","unchecked","unused"})
public class ProxyFactoryCompatibilityTest extends TestCase
{
private ClassPool basePool;
diff --git a/src/test/test/javassist/proxy/ProxySerializationTest.java b/src/test/test/javassist/proxy/ProxySerializationTest.java
index 42e16ca7..39d94f7e 100644
--- a/src/test/test/javassist/proxy/ProxySerializationTest.java
+++ b/src/test/test/javassist/proxy/ProxySerializationTest.java
@@ -13,6 +13,7 @@ import java.lang.reflect.Method;
* {@link javassist.util.proxy.ProxyObjectOutputStream} and @link javassist.util.proxy.ProxyObjectInputStream}
* reuses classes located in the proxy cache. This tests the fixes provided for JASSIST-42 and JASSIST-97.
*/
+@SuppressWarnings({"rawtypes","unchecked","unused","resource"})
public class ProxySerializationTest extends TestCase
{
public void testSerialization()
diff --git a/src/test/test/javassist/proxy/ProxySimpleTest.java b/src/test/test/javassist/proxy/ProxySimpleTest.java
index c73ab397..212c15fa 100644
--- a/src/test/test/javassist/proxy/ProxySimpleTest.java
+++ b/src/test/test/javassist/proxy/ProxySimpleTest.java
@@ -14,6 +14,7 @@ import javassist.util.proxy.MethodHandler;
import javassist.util.proxy.Proxy;
import javassist.util.proxy.ProxyFactory;
+@SuppressWarnings({"rawtypes","unchecked"})
public class ProxySimpleTest extends TestCase {
String testResult;
diff --git a/src/test/test/javassist/tools/DummyClass.java b/src/test/test/javassist/tools/DummyClass.java
index 020aa55d..ab9400f6 100644
--- a/src/test/test/javassist/tools/DummyClass.java
+++ b/src/test/test/javassist/tools/DummyClass.java
@@ -2,6 +2,7 @@ package test.javassist.tools;
public class DummyClass {
+ @SuppressWarnings("unused")
private String dummyString = "dummyStringValue";
public void dummyMethod(){}
diff --git a/src/test/test1/FieldMod.java b/src/test/test1/FieldMod.java
index 0023d2e3..2d68b335 100644
--- a/src/test/test1/FieldMod.java
+++ b/src/test/test1/FieldMod.java
@@ -1,6 +1,7 @@
package test1;
public class FieldMod {
+ @SuppressWarnings("unused")
private String text;
public int i;
}
diff --git a/src/test/test1/Howard.java b/src/test/test1/Howard.java
index 53bbae8c..6d203808 100644
--- a/src/test/test1/Howard.java
+++ b/src/test/test1/Howard.java
@@ -21,6 +21,7 @@ class Howard2 {
}
public class Howard extends Howard2 {
+ @SuppressWarnings("unused")
private Object _remote;
public int run() {
diff --git a/src/test/test1/Proceed.java b/src/test/test1/Proceed.java
index a37306ef..a55128f6 100644
--- a/src/test/test1/Proceed.java
+++ b/src/test/test1/Proceed.java
@@ -1,5 +1,6 @@
package test1;
+@SuppressWarnings("unused")
public class Proceed {
public int p(int i, int j) { return i + j; }
diff --git a/src/test/test1/RenameClass.java b/src/test/test1/RenameClass.java
index 99a92c62..93cfc23e 100644
--- a/src/test/test1/RenameClass.java
+++ b/src/test/test1/RenameClass.java
@@ -6,6 +6,7 @@ class RenameClass2 {
String name;
}
+@SuppressWarnings({"rawtypes","unchecked", "unused"})
public class RenameClass {
private Hashtable table;
public RenameClass() {
diff --git a/src/test/test2/AddMethod.java b/src/test/test2/AddMethod.java
index a7179e6e..c04ff606 100644
--- a/src/test/test2/AddMethod.java
+++ b/src/test/test2/AddMethod.java
@@ -1,6 +1,7 @@
package test2;
public class AddMethod {
+ @SuppressWarnings("unused")
private int f;
public int f() { return 0; }
diff --git a/src/test/test2/Anon.java b/src/test/test2/Anon.java
index 56223436..a9c0773f 100644
--- a/src/test/test2/Anon.java
+++ b/src/test/test2/Anon.java
@@ -1,5 +1,6 @@
package test2;
+@SuppressWarnings("unused")
public class Anon {
public Object make() {
return new Object() { int k; };
diff --git a/src/test/test2/Brennan.java b/src/test/test2/Brennan.java
index e93e00a9..4cc0a505 100644
--- a/src/test/test2/Brennan.java
+++ b/src/test/test2/Brennan.java
@@ -1,5 +1,6 @@
package test2;
+@SuppressWarnings("unused")
public class Brennan {
private Object format = null;
}
diff --git a/src/test/test2/Inner.java b/src/test/test2/Inner.java
index dbfb6d6e..15e08663 100644
--- a/src/test/test2/Inner.java
+++ b/src/test/test2/Inner.java
@@ -1,5 +1,6 @@
package test2;
+@SuppressWarnings("unused")
public class Inner {
public void sample() throws Exception {
java.util.Properties props = new java.util.Properties();
diff --git a/src/test/test2/InsertLocal.java b/src/test/test2/InsertLocal.java
index d400e622..43794cc8 100644
--- a/src/test/test2/InsertLocal.java
+++ b/src/test/test2/InsertLocal.java
@@ -22,6 +22,7 @@ public class InsertLocal {
return k + s.length();
}
+ @SuppressWarnings("unused")
public int run3() {
int i = 0;
int j = field;
diff --git a/src/test/test2/Nested.java b/src/test/test2/Nested.java
index 70ce60ee..6bb4547a 100644
--- a/src/test/test2/Nested.java
+++ b/src/test/test2/Nested.java
@@ -1,5 +1,6 @@
package test2;
+@SuppressWarnings("unused")
public class Nested {
private int i = 3;
private int geti() { return i; }
diff --git a/src/test/test2/Nested2.java b/src/test/test2/Nested2.java
index f23439bd..728c1b7a 100644
--- a/src/test/test2/Nested2.java
+++ b/src/test/test2/Nested2.java
@@ -1,5 +1,6 @@
package test2;
+@SuppressWarnings("unused")
public class Nested2 {
private int i = 3;
private double d = 3.0;
diff --git a/src/test/test2/Nested3.java b/src/test/test2/Nested3.java
index 570f7a5e..9e9f1ab3 100644
--- a/src/test/test2/Nested3.java
+++ b/src/test/test2/Nested3.java
@@ -1,5 +1,6 @@
package test2;
+@SuppressWarnings("unused")
public class Nested3 {
private int i = 0;
private int geti() { return i; }
diff --git a/src/test/test2/Nested4.java b/src/test/test2/Nested4.java
index 5b33aea5..04bcd767 100644
--- a/src/test/test2/Nested4.java
+++ b/src/test/test2/Nested4.java
@@ -1,5 +1,6 @@
package test2;
+@SuppressWarnings("unused")
public class Nested4 {
private static int value = 6;
}
diff --git a/src/test/test2/NewArray.java b/src/test/test2/NewArray.java
index d61fa750..f7c0439b 100644
--- a/src/test/test2/NewArray.java
+++ b/src/test/test2/NewArray.java
@@ -1,5 +1,6 @@
package test2;
+@SuppressWarnings("unused")
public class NewArray {
public int run() {
return foo(1);
diff --git a/src/test/test2/NewExprInTry.java b/src/test/test2/NewExprInTry.java
index 804a7c8d..70dc9b28 100644
--- a/src/test/test2/NewExprInTry.java
+++ b/src/test/test2/NewExprInTry.java
@@ -2,6 +2,7 @@ package test2;
import java.util.HashMap;
+@SuppressWarnings("rawtypes")
class HashMapWrapper extends HashMap {
/** default serialVersionUID */
private static final long serialVersionUID = 1L;
@@ -11,6 +12,7 @@ class HashMapWrapper extends HashMap {
}
}
+@SuppressWarnings({"rawtypes","unused"})
public class NewExprInTry {
public int run() {
return foo(6);
diff --git a/src/test/test2/NewExprTry.java b/src/test/test2/NewExprTry.java
index fb779d96..f728dbe7 100644
--- a/src/test/test2/NewExprTry.java
+++ b/src/test/test2/NewExprTry.java
@@ -15,6 +15,7 @@ public class NewExprTry {
}
public static void main(String[] args) {
+ @SuppressWarnings("unused")
NewExprTry obj = new NewExprTry(3);
}
}
diff --git a/src/test/test2/NewOp.java b/src/test/test2/NewOp.java
index bf798a92..a9334252 100644
--- a/src/test/test2/NewOp.java
+++ b/src/test/test2/NewOp.java
@@ -5,6 +5,7 @@ class NewOp2 {
}
public class NewOp {
+ @SuppressWarnings("rawtypes")
java.util.Vector listenerList;
static int i = 0;
static String s;
diff --git a/src/test/test3/Enhancer.java b/src/test/test3/Enhancer.java
index 8aa13d25..e3a93e8a 100644
--- a/src/test/test3/Enhancer.java
+++ b/src/test/test3/Enhancer.java
@@ -11,6 +11,7 @@ class EnhanceTest {
public void foo(String s) { System.out.println(s); }
}
+@SuppressWarnings({"rawtypes","unchecked","unused"})
public class Enhancer {
private ClassPool pool;
private CtClass superClass;
diff --git a/src/test/test3/Erasure.java b/src/test/test3/Erasure.java
index 412f439a..7514981a 100644
--- a/src/test/test3/Erasure.java
+++ b/src/test/test3/Erasure.java
@@ -9,6 +9,7 @@ public class Erasure<T> {
public Erasure(T t) { value = t; }
public Erasure() { value = null; }
public int run() {
+ @SuppressWarnings("unchecked")
ErasureGet<String> obj = (ErasureGet<String>)new Erasure<String>("1234");
return obj.get().length();
}
diff --git a/src/test/test3/FieldAccessType.java b/src/test/test3/FieldAccessType.java
index c61550d6..bb102ba8 100644
--- a/src/test/test3/FieldAccessType.java
+++ b/src/test/test3/FieldAccessType.java
@@ -4,6 +4,7 @@ public class FieldAccessType {
private int[] k;
public void access() {
k = new int[1];
+ @SuppressWarnings("unused")
int i = 3;
i += k[0];
}
diff --git a/src/test/test3/GetMethods.java b/src/test/test3/GetMethods.java
index 69cc49fa..64e66bd0 100644
--- a/src/test/test3/GetMethods.java
+++ b/src/test/test3/GetMethods.java
@@ -1,5 +1,6 @@
package test3;
+@SuppressWarnings("unused")
class SuperGetMethods {
public int f0;
protected double d0;
@@ -12,6 +13,7 @@ class SuperGetMethods {
private void mpri0() {}
}
+@SuppressWarnings("unused")
public class GetMethods extends SuperGetMethods {
public GetMethods(int i) {}
protected GetMethods(String i, int j) {}
diff --git a/src/test/test3/MethodRedirect.java b/src/test/test3/MethodRedirect.java
index 889a3c68..c7cacde8 100644
--- a/src/test/test3/MethodRedirect.java
+++ b/src/test/test3/MethodRedirect.java
@@ -5,6 +5,7 @@ interface MethodRedirectIntf {
}
public class MethodRedirect implements MethodRedirectIntf {
+ @SuppressWarnings("unused")
private int foo() { return 0; }
public static int poi() { return 1; }
public int bar() { return 2; }
diff --git a/src/test/test3/NestedClass.java b/src/test/test3/NestedClass.java
index 75b4efe2..e1459b26 100644
--- a/src/test/test3/NestedClass.java
+++ b/src/test/test3/NestedClass.java
@@ -17,6 +17,7 @@ public class NestedClass {
public Object bar() {
class Local {
+ @SuppressWarnings("unused")
int j;
}
return new Local();
diff --git a/src/test/test3/NewExprTryCatch.java b/src/test/test3/NewExprTryCatch.java
index 193985eb..f93b528d 100644
--- a/src/test/test3/NewExprTryCatch.java
+++ b/src/test/test3/NewExprTryCatch.java
@@ -18,6 +18,7 @@ public class NewExprTryCatch {
// the error is somehow related to the string concatenation and local variables,
// when the code below is replaced with something else, the error does not occur.
String s1 = "a";
+ @SuppressWarnings("unused")
String s2 = s1 + "b";
}
diff --git a/src/test/test3/ReplaceNew.java b/src/test/test3/ReplaceNew.java
index 018408eb..8f8a7869 100644
--- a/src/test/test3/ReplaceNew.java
+++ b/src/test/test3/ReplaceNew.java
@@ -6,6 +6,7 @@ public class ReplaceNew {
int i = 0;
public int run() {
i = 3;
+ @SuppressWarnings("unused")
ReplaceNew s = new ReplaceNew();
new ReplaceNew();
return i;
diff --git a/src/test/test3/Visible.java b/src/test/test3/Visible.java
index 162f46e1..d3397f1e 100644
--- a/src/test/test3/Visible.java
+++ b/src/test/test3/Visible.java
@@ -1,5 +1,6 @@
package test3;
+@SuppressWarnings("unused")
class Visible2 {
public int pub;
protected int pro;
@@ -7,6 +8,7 @@ class Visible2 {
int pack;
}
+@SuppressWarnings("unused")
public class Visible {
public int pub;
protected int pro;
diff --git a/src/test/testproxy/ProxyFactoryPerformanceTest.java b/src/test/testproxy/ProxyFactoryPerformanceTest.java
index 829f960a..df8bd8fc 100644
--- a/src/test/testproxy/ProxyFactoryPerformanceTest.java
+++ b/src/test/testproxy/ProxyFactoryPerformanceTest.java
@@ -17,6 +17,7 @@ import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
+@SuppressWarnings({"rawtypes","unchecked", "unused"})
public class ProxyFactoryPerformanceTest extends TestCase {
public static final int COUNT = 100;
@@ -84,6 +85,7 @@ public class ProxyFactoryPerformanceTest extends TestCase {
}
}
+@SuppressWarnings({"rawtypes","unused"})
class ProxyMaker extends Thread implements MethodHandler {
private static final MethodFilter FINALIZE_FILTER = new MethodFilter() {
public boolean isHandled(Method m) {
diff --git a/src/test/testproxy/ProxyTester.java b/src/test/testproxy/ProxyTester.java
index e8f052fc..64712ef3 100644
--- a/src/test/testproxy/ProxyTester.java
+++ b/src/test/testproxy/ProxyTester.java
@@ -15,6 +15,7 @@ import javassist.util.proxy.Proxy;
import junit.framework.TestCase;
import java.io.*;
+@SuppressWarnings({"unchecked", "rawtypes","unused"})
public class ProxyTester extends TestCase {
public ProxyTester(String s) {
super(s);
diff --git a/src/test/testproxy/Target2.java b/src/test/testproxy/Target2.java
index 91b57be5..192bac77 100644
--- a/src/test/testproxy/Target2.java
+++ b/src/test/testproxy/Target2.java
@@ -2,6 +2,7 @@ package testproxy;
import java.io.IOException;
+@SuppressWarnings("unused")
public class Target2 {
private int value;
public Target2(int i) { value = 1; }
diff --git a/src/test/testproxy/sub/TargetSuper.java b/src/test/testproxy/sub/TargetSuper.java
index 0e40cded..9eb8d1da 100644
--- a/src/test/testproxy/sub/TargetSuper.java
+++ b/src/test/testproxy/sub/TargetSuper.java
@@ -1,5 +1,6 @@
package testproxy.sub;
+@SuppressWarnings("unused")
public class TargetSuper {
private int poi() { return 1; }
int poi2() { return 2; }