ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/util/depend Dependencies.java
Date Tue, 05 Feb 2002 13:51:30 GMT
conor       02/02/05 05:51:30

  Modified:    src/main/org/apache/tools/ant/util/depend Dependencies.java
  Log:
  Insulate Ant from BCEL interface changes
  
  Revision  Changes    Path
  1.5       +2 -32     jakarta-ant/src/main/org/apache/tools/ant/util/depend/Dependencies.java
  
  Index: Dependencies.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/util/depend/Dependencies.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -w -u -r1.4 -r1.5
  --- Dependencies.java	20 Jan 2002 20:45:56 -0000	1.4
  +++ Dependencies.java	5 Feb 2002 13:51:30 -0000	1.5
  @@ -60,7 +60,7 @@
   import java.util.TreeSet;
   import java.util.Iterator;
   import java.util.Collection;
  -import org.apache.bcel.classfile.Visitor;
  +import org.apache.bcel.classfile.EmptyVisitor;
   import org.apache.bcel.classfile.JavaClass;
   import org.apache.bcel.classfile.ConstantPool;
   import org.apache.bcel.classfile.Code;
  @@ -97,7 +97,7 @@
   
   
   
  -public class Dependencies implements Visitor {
  +public class Dependencies extends EmptyVisitor {
       private boolean verbose = false;
   
       private JavaClass javaClass;
  @@ -112,9 +112,6 @@
           return dependencies;
       }
   
  -    public void visitCode(Code obj) {}
  -    public void visitCodeException(CodeException obj) {}
  -    
       public void visitConstantClass(ConstantClass obj) {
           if (verbose) {
               System.out.println("visit ConstantClass");
  @@ -123,15 +120,6 @@
           dependencies.add("" + obj.getConstantValue(constantPool));
       }
       
  -    public void visitConstantDouble(ConstantDouble obj) {}
  -    public void visitConstantFieldref(ConstantFieldref obj) {}
  -    public void visitConstantFloat(ConstantFloat obj) {}
  -    public void visitConstantInteger(ConstantInteger obj) {}
  -    public void visitConstantInterfaceMethodref(ConstantInterfaceMethodref obj) {}
  -    public void visitConstantLong(ConstantLong obj) {}
  -    public void visitConstantMethodref(ConstantMethodref obj) {}
  -    public void visitConstantNameAndType(ConstantNameAndType obj) {}
  -    
       public void visitConstantPool(ConstantPool obj) {
           if (verbose) {
               System.out.println("visit ConstantPool");
  @@ -146,11 +134,6 @@
               }
           }
       }
  -    public void visitConstantString(ConstantString obj) {}
  -    public void visitConstantUtf8(ConstantUtf8 obj) {}
  -    public void visitConstantValue(ConstantValue obj) {}
  -    public void visitDeprecated(Deprecated obj) {}
  -    public void visitExceptionTable(ExceptionTable obj) {}
       
       public void visitField(Field obj) {
           if (verbose) {
  @@ -160,9 +143,6 @@
           addClasses(obj.getSignature());
       }
   
  -    public void visitInnerClass(InnerClass obj) {}
  -    public void visitInnerClasses(InnerClasses obj) {}
  -    
       public void visitJavaClass(JavaClass obj) {
           if (verbose) {
               System.out.println("visit JavaClass");
  @@ -186,10 +166,6 @@
               methods[i].accept(this);
           }
       }
  -    public void visitLineNumber(LineNumber obj) {}
  -    public void visitLineNumberTable(LineNumberTable obj) {}
  -    public void visitLocalVariable(LocalVariable obj) {}
  -    public void visitLocalVariableTable(LocalVariableTable obj) {}
       
       public void visitMethod(Method obj) {
           if (verbose) {
  @@ -202,12 +178,6 @@
           addClasses(signature.substring(pos + 1));
       }
       
  -    public void visitSourceFile(SourceFile obj) {}
  -    public void visitSynthetic(Synthetic obj) {}
  -    public void visitUnknown(Unknown obj) {}
  -    public void visitStackMap(StackMap obj) {}
  -    public void visitStackMapEntry(StackMapEntry obj) {}
  -
       void addClasses(String string) {
           StringTokenizer tokens = new StringTokenizer(string, ";");
           while (tokens.hasMoreTokens()) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message