this.mapSharedLocation2DescriptorSet = new Hashtable<Location, Set<Descriptor>>();
this.linearTypeCheckMethodSet = new HashSet<MethodDescriptor>();
this.bf = bf;
- trustWorthyMDSet = new HashSet<MethodDescriptor>();
+ this.trustWorthyMDSet = new HashSet<MethodDescriptor>();
}
public void doCheck() {
doMethodAnnotationCheck();
// computeLinearTypeCheckMethodSet();
// doLinearTypeCheck();
- // if (state.SSJAVADEBUG) {
- // debugPrint();
- // }
+ if (state.SSJAVADEBUG) {
+ debugPrint();
+ }
parseLocationAnnotation();
// doFlowDownCheck();
doDefinitelyWrittenCheck();
ClassDescriptor cd = md.getClassDesc();
// if a method requires to be annotated, class containg that method also
// requires to be annotated
- annotationRequireClassSet.add(cd);
- annotationRequireSet.add(md);
+ if (!isSSJavaUtil(cd)) {
+ annotationRequireClassSet.add(cd);
+ annotationRequireSet.add(md);
+ }
}
public Set<MethodDescriptor> getAnnotationRequireSet() {
public void setMethodContainingSSJavaLoop(MethodDescriptor methodContainingSSJavaLoop) {
this.methodContainingSSJavaLoop = methodContainingSSJavaLoop;
}
+
+ public boolean isSSJavaUtil(ClassDescriptor cd) {
+ if (cd.getSymbol().equals("SSJAVA")) {
+ return true;
+ }
+ return false;
+ }
}