Changeset 22

Show
Ignore:
Timestamp:
07/25/05 17:37:34 (3 years ago)
Author:
schst
Message:

removed obsolete imports, fixed coding styles (please always use this.)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/net/schst/XJConf/TagDefinition.java

    r21 r22  
    44import java.lang.reflect.Method; 
    55import java.util.ArrayList; 
    6 import java.util.HashSet; 
    76import java.util.List; 
    8 import java.util.Set; 
    97 
    108/** 
     
    298296                        childMethod = cl.getMethod(methodName, childParamTypes); 
    299297                    } catch (NoSuchMethodException e) { 
    300                         Class interfaces[] = (Class[])  determineAllInterfaces(new ArrayList(), childValue.getClass()).toArray(new Class[0]); 
     298                        Class interfaces[] = (Class[])  this.determineAllInterfaces(new ArrayList(), childValue.getClass()).toArray(new Class[0]); 
    301299                        for (int j = 0; j < interfaces.length; j++) { 
    302300                            try { 
     
    320318        return instance; 
    321319    } 
    322      
     320 
     321    /** 
     322     * Get all interfaces of a class 
     323     *    
     324     * @param result 
     325     * @param superClass 
     326     * @return 
     327     */ 
    323328    private List determineAllInterfaces(List result, Class superClass) { 
    324329        Class[] subclasses = superClass.getInterfaces(); 
     
    326331            Class inter = subclasses[i]; 
    327332            result.add(inter); 
    328             determineAllInterfaces(result,inter); 
     333            this.determineAllInterfaces(result,inter); 
    329334        } 
    330335        return result;  
    331336    } 
    332      
    333      
    334337}