]> source.dussan.org Git - aspectj.git/commitdiff
spring cleaning in advance of 1.2 enhancements:
authoracolyer <acolyer>
Fri, 23 Jan 2004 12:34:27 +0000 (12:34 +0000)
committeracolyer <acolyer>
Fri, 23 Jan 2004 12:34:27 +0000 (12:34 +0000)
removed unused imports, local variables, and private methods
(still there, just commented out).

weaver/src/org/aspectj/weaver/AjcMemberMaker.java
weaver/src/org/aspectj/weaver/ConcreteTypeMunger.java
weaver/src/org/aspectj/weaver/bcel/BcelShadow.java
weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java
weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java
weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java
weaver/testsrc/org/aspectj/weaver/bcel/PatternWeaveTestCase.java
weaver/testsrc/org/aspectj/weaver/bcel/WorldTestCase.java
weaver/testsrc/org/aspectj/weaver/patterns/ThisOrTargetTestCase.java
weaver/testsrc/org/aspectj/weaver/patterns/TypePatternTestCase.java

index 52d6d614483da0eb9a009c74ef1bc41bd1836383..f19776f05ea00a014443ec9ccefd4c11ecbbebfc 100644 (file)
@@ -15,7 +15,7 @@ package org.aspectj.weaver;
 
 import java.lang.reflect.Modifier;
 
-import org.aspectj.weaver.ResolvedTypeX.Name;
+//import org.aspectj.weaver.ResolvedTypeX.Name;
 
 
 public class AjcMemberMaker {
index d268f2fbae502045835fc5726b913ad5c579b8c3..0ce029a551945162fa19c6bc0efc5823cd01bab5 100644 (file)
@@ -73,7 +73,7 @@ public abstract class ConcreteTypeMunger implements PartialOrder.PartialComparab
        }
 
        public int fallbackCompareTo(Object other) {
-               ConcreteTypeMunger o = (ConcreteTypeMunger) other;
+//             ConcreteTypeMunger o = (ConcreteTypeMunger) other;
                return 0;
        }
 
index 0ffdfc6be4c3f05b2aa3c3ea2d059f04f179a8c4..081d9f63452a35e4ba0b684e9d2d38ba964c6dd9 100644 (file)
@@ -1539,7 +1539,7 @@ public class BcelShadow extends Shadow {
         InstructionList closureInstantiation =
             makeClosureInstantiation(constructorSig, closureHolder);
 
-        LazyMethodGen constructor = 
+        /*LazyMethodGen constructor = */ 
             makeClosureClassAndReturnConstructor(
                closureClassName,
                 callbackMethod, 
index 36ad5acb19b7d7524b8d4c5e8b6acbc98b58b848..c3fdb2f6af2d02518135de99b52192cefea470ae 100644 (file)
@@ -571,7 +571,7 @@ public class BcelTypeMunger extends ConcreteTypeMunger {
        }       
        
        private boolean mungeNewField(BcelClassWeaver weaver, NewFieldTypeMunger munger) {
-               ResolvedMember initMethod = munger.getInitMethod(aspectType);
+               /*ResolvedMember initMethod = */munger.getInitMethod(aspectType);
                
                LazyClassGen gen = weaver.getLazyClassGen();
                ResolvedMember field = munger.getSignature();
index 0d8dff56302f95e565110966fa00c22cb7846c23..3d7611d73b4a57caeeb19c8e362e6a87e7bb0fcc 100644 (file)
@@ -468,7 +468,7 @@ public class BcelWeaver implements IWeaver {
                        return null;
                }
                
-               JavaClass javaClass = classType.getJavaClass();
+//             JavaClass javaClass = classType.getJavaClass();
                List shadowMungers = fastMatch(shadowMungerList, classType.getResolvedTypeX());
                List typeMungers = classType.getResolvedTypeX().getInterTypeMungers();
         
index 7c409238b95252bba68f4255018477aa2cdd2729..6a37aee39717e75a9ca240fbaa4aea83f5a64c8a 100644 (file)
@@ -529,8 +529,8 @@ public final class LazyClassGen {
        new ObjectType("org.aspectj.lang.JoinPoint$StaticPart");
     private static final ObjectType sigType = 
        new ObjectType("org.aspectj.lang.Signature");
-    private static final ObjectType slType = 
-       new ObjectType("org.aspectj.lang.reflect.SourceLocation");
+//    private static final ObjectType slType = 
+//     new ObjectType("org.aspectj.lang.reflect.SourceLocation");
     private static final ObjectType factoryType = 
        new ObjectType("org.aspectj.runtime.reflect.Factory");
     private static final ObjectType classType = 
index 4cea61148b1841cd8f6bef7dd54d0e5561c589a7..db9248c84b54d07e3ec60299f00c05fad71ebcdf 100644 (file)
@@ -70,9 +70,9 @@ public class PatternWeaveTestCase extends WeaveTestCase {
                checkPointcut("get(* java.lang.System.out)", getOutHello, getOutHello);
        }       
        
-       private Pointcut makePointcut(String s) {
-               return new PatternParser(s).parsePointcut();
-       }
+//     private Pointcut makePointcut(String s) {
+//             return new PatternParser(s).parsePointcut();
+//     }
                
     private void checkPointcut(String pointcutSource, String[] expectedHelloShadows, 
                                 String[] expectedFancyShadows) throws IOException
index 428bdce9c1b3cc5c88854e20c4b630122919db24..7fe8f84c910c88218f22b81d8b600394d93bf55e 100644 (file)
@@ -38,7 +38,7 @@ public class WorldTestCase extends AbstractWorldTestCase {
         ResolvedTypeX trace = world.resolve(TypeX.forName("Trace"));
 
         fieldsTest(trace, Member.NONE);
-        Member constr = Member.methodFromString("void Trace.<init>()"); 
+        /*Member constr = */Member.methodFromString("void Trace.<init>()"); 
         //XXX need attribute fix - 
         //methodsTest(trace, new Member[] { constr });
 
index d33d42daac8ae66ba0fabc6ac1b036a3d46d90e1..da8f3eecb37c3e76f616303958158248aa1e03d3 100644 (file)
@@ -47,14 +47,14 @@ public class ThisOrTargetTestCase extends TestCase {
                
        }
 
-       private Pointcut makePointcut(String pattern) {
-               return new PatternParser(pattern).parsePointcut();
-       }
+//     private Pointcut makePointcut(String pattern) {
+//             return new PatternParser(pattern).parsePointcut();
+//     }
        
-       private void checkEquals(String pattern, Pointcut p) throws IOException {
-               assertEquals(pattern, p, makePointcut(pattern));
-               checkSerialization(pattern);
-       }
+//     private void checkEquals(String pattern, Pointcut p) throws IOException {
+//             assertEquals(pattern, p, makePointcut(pattern));
+//             checkSerialization(pattern);
+//     }
 
        
 //     private void checkMatch(Pointcut p, Signature[] matches, boolean shouldMatch) {
@@ -83,18 +83,18 @@ public class ThisOrTargetTestCase extends TestCase {
         * Method checkSerialization.
         * @param string
         */
-       private void checkSerialization(String string) throws IOException {
-               Pointcut p = makePointcut(string);
-               ByteArrayOutputStream bo = new ByteArrayOutputStream();
-               DataOutputStream out = new DataOutputStream(bo);
-               p.write(out);
-               out.close();
-               
-               ByteArrayInputStream bi = new ByteArrayInputStream(bo.toByteArray());
-               DataInputStream in = new DataInputStream(bi);
-               Pointcut newP = Pointcut.read(in, null);
-               
-               assertEquals("write/read", p, newP);    
-       }
+//     private void checkSerialization(String string) throws IOException {
+//             Pointcut p = makePointcut(string);
+//             ByteArrayOutputStream bo = new ByteArrayOutputStream();
+//             DataOutputStream out = new DataOutputStream(bo);
+//             p.write(out);
+//             out.close();
+//             
+//             ByteArrayInputStream bi = new ByteArrayInputStream(bo.toByteArray());
+//             DataInputStream in = new DataInputStream(bi);
+//             Pointcut newP = Pointcut.read(in, null);
+//             
+//             assertEquals("write/read", p, newP);    
+//     }
        
 }
index 6d7ee2185b45977fa9690b70a79a232ba8818c77..67615d9440d1c2bb24ce5e7a79eec413d7a9836e 100644 (file)
@@ -206,7 +206,7 @@ public class TypePatternTestCase extends TestCase {
                try {
                        TypePattern p = makeTypePattern(pattern);
                        ResolvedTypeX type = world.resolve(name);
-                       FuzzyBoolean result = p.matchesInstanceof(type);
+                       /*FuzzyBoolean result = */p.matchesInstanceof(type);
                } catch (AbortException e) {
                        return;
                }