cosmetic changes (to remove warnings in Eclipse)
diff --git a/examples/analysis/src/Analysis.java b/examples/analysis/src/Analysis.java
index 42107dd..1e92c5b 100644
--- a/examples/analysis/src/Analysis.java
+++ b/examples/analysis/src/Analysis.java
@@ -87,7 +87,7 @@
}
}
- /**
+ /*
* Detects unused xSTORE instructions, i.e. xSTORE instructions without at
* least one xLOAD corresponding instruction in their successor instructions
* (in the control flow graph).
@@ -140,7 +140,7 @@
return ok;
}
- /**
+ /*
* Test for the above method, with three useless xSTORE instructions.
*/
diff --git a/examples/compile/src/Compile.java b/examples/compile/src/Compile.java
index a8c3d74..32872c1 100644
--- a/examples/compile/src/Compile.java
+++ b/examples/compile/src/Compile.java
@@ -71,7 +71,7 @@
abstract class Exp implements Constants {
- /**
+ /*
* Returns the byte code of an Expression class corresponding to this
* expression.
*/
@@ -101,7 +101,7 @@
return cw.toByteArray();
}
- /**
+ /*
* Compile this expression. This method must append to the given code
* writer the byte code that evaluates and pushes on the stack the
* value of this expression.
diff --git a/src/org/objectweb/asm/CodeWriter.java b/src/org/objectweb/asm/CodeWriter.java
index 870f405..4abddc9 100644
--- a/src/org/objectweb/asm/CodeWriter.java
+++ b/src/org/objectweb/asm/CodeWriter.java
@@ -1568,7 +1568,6 @@
v = u;
u = u + 4 - (v & 3);
// reads and copies instruction
- int source = newCode.length;
newCode.putByte(Constants.TABLESWITCH);
while (newCode.length % 4 != 0) {
newCode.putByte(0);
@@ -1591,7 +1590,6 @@
v = u;
u = u + 4 - (v & 3);
// reads and copies instruction
- source = newCode.length;
newCode.putByte(Constants.LOOKUPSWITCH);
while (newCode.length % 4 != 0) {
newCode.putByte(0);
diff --git a/src/org/objectweb/asm/tree/InsnNode.java b/src/org/objectweb/asm/tree/InsnNode.java
index e97a6d8..c7b2b19 100644
--- a/src/org/objectweb/asm/tree/InsnNode.java
+++ b/src/org/objectweb/asm/tree/InsnNode.java
@@ -116,6 +116,8 @@
/**
* Makes the given code visitor visit this instruction.
+ *
+ * @param cv a code visitor.
*/
public void accept (final CodeVisitor cv) {
diff --git a/src/org/objectweb/asm/tree/analysis/Analyzer.java b/src/org/objectweb/asm/tree/analysis/Analyzer.java
index 8d812df..2f111a7 100644
--- a/src/org/objectweb/asm/tree/analysis/Analyzer.java
+++ b/src/org/objectweb/asm/tree/analysis/Analyzer.java
@@ -354,7 +354,6 @@
throw new RuntimeException("Execution can fall off end of the code");
} else {
Frame oldFrame = frames[insn];
- Subroutine oldSubroutine = subroutines[insn];
boolean changes = false;
afterRET.merge(beforeJSR, access);
diff --git a/test/perf/org/objectweb/asm/test/perf/ALL.java b/test/perf/org/objectweb/asm/test/perf/ALL.java
index b55b33c..0c46e44 100644
--- a/test/perf/org/objectweb/asm/test/perf/ALL.java
+++ b/test/perf/org/objectweb/asm/test/perf/ALL.java
@@ -167,7 +167,6 @@
ALL loader = newInstance();
zip = new ZipFile(args[i]);
Enumeration entries = zip.entries();
- double t = System.currentTimeMillis();
while (entries.hasMoreElements()) {
String s = ((ZipEntry)entries.nextElement()).getName();
if (s.endsWith(".class")) {
diff --git a/test/perf/org/objectweb/asm/test/perf/BCEL.java b/test/perf/org/objectweb/asm/test/perf/BCEL.java
index a692282..fbe14ec 100644
--- a/test/perf/org/objectweb/asm/test/perf/BCEL.java
+++ b/test/perf/org/objectweb/asm/test/perf/BCEL.java
@@ -58,7 +58,6 @@
{
JavaClass jc = new ClassParser(is, name + ".class").parse();
ClassGen cg = new ClassGen(jc);
- String cName = cg.getClassName();
ConstantPoolGen cp = cg.getConstantPool();
Method[] ms = cg.getMethods();
for (int j = 0; j < ms.length; ++j) {
@@ -93,7 +92,6 @@
{
JavaClass jc = new ClassParser(is, name + ".class").parse();
ClassGen cg = new ClassGen(jc);
- String cName = cg.getClassName();
ConstantPoolGen cp = cg.getConstantPool();
if (!cg.isInterface()) {
FieldGen fg = new FieldGen(ACC_PUBLIC, Type.getType("I"), "_counter", cp);
diff --git a/test/perf/org/objectweb/asm/test/perf/Javassist.java b/test/perf/org/objectweb/asm/test/perf/Javassist.java
index 1e3798b..7da90d4 100644
--- a/test/perf/org/objectweb/asm/test/perf/Javassist.java
+++ b/test/perf/org/objectweb/asm/test/perf/Javassist.java
@@ -68,7 +68,6 @@
CtClass cc = pool.makeClass(is);
CtMethod[] ms = cc.getDeclaredMethods();
for (int j = 0; j < ms.length; ++j) {
- CtMethod m = ms[j];
if (skipDebug) {
// is there a mean to remove the debug attributes?
}
diff --git a/test/perf/org/objectweb/asm/test/perf/SERP.java b/test/perf/org/objectweb/asm/test/perf/SERP.java
index 6f70e9e..d01e6cd 100644
--- a/test/perf/org/objectweb/asm/test/perf/SERP.java
+++ b/test/perf/org/objectweb/asm/test/perf/SERP.java
@@ -31,10 +31,8 @@
package org.objectweb.asm.test.perf;
import serp.bytecode.BCClass;
-import serp.bytecode.BCField;
import serp.bytecode.BCMethod;
import serp.bytecode.Code;
-import serp.bytecode.Instruction;
import serp.bytecode.Project;
import java.io.InputStream;
@@ -65,13 +63,13 @@
p.removeClass(c);
}
c = p.loadClass(is);
- BCField[] fields = c.getDeclaredFields();
+ c.getDeclaredFields();
BCMethod[] methods = c.getDeclaredMethods();
for (int i = 0; i < methods.length; ++i) {
Code code = methods[i].getCode(false);
if (code != null) {
while (code.hasNext()) {
- Instruction ins = code.next();
+ code.next();
}
if (compute) {
code.calculateMaxStack();
@@ -89,7 +87,7 @@
p.removeClass(c);
}
c = p.loadClass(is);
- BCField[] fields = c.getDeclaredFields();
+ c.getDeclaredFields();
if (!c.isInterface()) {
c.declareField("_counter", "I");
}