public void scan(ClassNode cn){
  List<ThreatResult> threats=new ArrayList<ThreatResult>();
  for (  ClassHandler classHandler : classHandlers) {
    ThreatResult result=classHandler.scanClass(cn);
    if (result != null) {
      threats.add(result);
    }
  }
  for (  MethodNode mn : cn.methods) {
    for (    MethodHandler methodHandler : methodHandlers) {
      ThreatResult result=methodHandler.scanMethod(mn);
      if (result != null) {
        threats.add(result);
      }
    }
  }
  if (threats.size() > 0) {
    threatsByClass.put(cn.name,threats);
  }
}

public void scan ( ClassNode cn ) { List < ThreatResult > threats = new ArrayList < ThreatResult > ( ) ; for ( ClassHandler classHandler : classHandlers ) { ThreatResult result = classHandler . scanClass ( cn ) ; if ( result != null ) { threats . add ( result ) ; } } for ( MethodNode mn : cn . methods ) { for ( MethodHandler methodHandler : methodHandlers ) { ThreatResult result = methodHandler . scanMethod ( mn ) ; if ( result != null ) { threats . add ( result ) ; } } } if ( threats . size ( ) > 0 ) { threatsByClass . put ( cn . name , threats ) ; } }
scans a class node .
