mdahm 2002/06/03 02:06:37
Modified: src/java/org/apache/bcel Repository.java
src/java/org/apache/bcel/classfile JavaClass.java
Method.java
Log:
Removed redundant vars
Revision Changes Path
1.6 +2 -2 jakarta-bcel/src/java/org/apache/bcel/Repository.java
Index: Repository.java
===================================================================
RCS file: /home/cvs/jakarta-bcel/src/java/org/apache/bcel/Repository.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Repository.java 3 Apr 2002 14:42:28 -0000 1.5
+++ Repository.java 3 Jun 2002 09:06:37 -0000 1.6
@@ -68,7 +68,7 @@
* the repository or been added with addClass() manually. This is
* because we have to check for real object identity (==).
*
- * @version $Id: Repository.java,v 1.5 2002/04/03 14:42:28 mdahm Exp $
+ * @version $Id: Repository.java,v 1.6 2002/06/03 09:06:37 mdahm Exp $
* @author <A HREF="mailto:[email protected]">M. Dahm</A
*/
public abstract class Repository {
@@ -231,7 +231,7 @@
String s = clazz.getSuperclassName();
String[] interfaces = clazz.getInterfaceNames();
-
+System.out.println(java.util.Arrays.asList(interfaces));
if(clazz.isInterface())
vec.addElement(clazz);
else if(!s.equals("java.lang.Object"))
1.8 +6 -5 jakarta-bcel/src/java/org/apache/bcel/classfile/JavaClass.java
Index: JavaClass.java
===================================================================
RCS file: /home/cvs/jakarta-bcel/src/java/org/apache/bcel/classfile/JavaClass.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- JavaClass.java 17 May 2002 19:24:04 -0000 1.7
+++ JavaClass.java 3 Jun 2002 09:06:37 -0000 1.8
@@ -74,7 +74,7 @@
* class file. Those interested in programatically generating classes
* should see the <a href="../generic/ClassGen.html">ClassGen</a> class.
- * @version $Id: JavaClass.java,v 1.7 2002/05/17 19:24:04 ddp Exp $
+ * @version $Id: JavaClass.java,v 1.8 2002/06/03 09:06:37 mdahm Exp $
* @see org.apache.bcel.generic.ClassGen
* @author <A HREF="mailto:[email protected]">M. Dahm</A>
*/
@@ -171,9 +171,6 @@
}
}
- // Get class name and superclass name
- ConstantUtf8 name;
-
/* According to the specification the following entries must be of type
* `ConstantClass' but we check that anyway via the
* `ConstPool.getConstant' method.
@@ -293,7 +290,11 @@
try {
dump(ds);
ds.close();
- } catch(IOException e) { e.printStackTrace(); }
+ } catch(IOException e) {
+ e.printStackTrace();
+ } finally {
+ try { ds.close(); } catch(IOException e2) { e2.printStackTrace(); }
+ }
return s.toByteArray();
}
1.4 +1 -4 jakarta-bcel/src/java/org/apache/bcel/classfile/Method.java
Index: Method.java
===================================================================
RCS file: /home/cvs/jakarta-bcel/src/java/org/apache/bcel/classfile/Method.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Method.java 24 Apr 2002 11:01:30 -0000 1.3
+++ Method.java 3 Jun 2002 09:06:37 -0000 1.4
@@ -61,7 +61,7 @@
* for a method in the class. See JVM specification for details.
* A method has access flags, a name, a signature and a number of attributes.
*
- * @version $Id: Method.java,v 1.3 2002/04/24 11:01:30 mdahm Exp $
+ * @version $Id: Method.java,v 1.4 2002/06/03 09:06:37 mdahm Exp $
* @author <A HREF="mailto:[email protected]">M. Dahm</A>
*/
public final class Method extends FieldOrMethod {
@@ -170,11 +170,8 @@
*/
public final String toString() {
ConstantUtf8 c;
- ConstantValue cv;
String name, signature, access; // Short cuts to constant pool
- String exceptions;
StringBuffer buf;
- Attribute[] attr;
access = Utility.accessToString(access_flags);
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.