@Override public String toString() { return (isStatic ? "static " : "") + getClassDescriptor().getDottedClassName() + "." + name + signature; }
private void check(XMethod xmethod, ClassDescriptor annotation, boolean expectWarnings, int priority) { AnnotationValue expect = xmethod.getAnnotation(annotation); if (expect == null) { return; } if (DEBUG) { System.out.println("*** Found " + annotation + " annotation on " + xmethod); } FieldOrMethodDescriptor descriptor = xmethod.getMethodDescriptor(); Collection<BugInstance> warnings = warningsByMethod.get(descriptor); check(expect, descriptor, warnings, expectWarnings, priority, descriptor.getClassDescriptor()); }
private void check(XField xfield, ClassDescriptor annotation, boolean expectWarnings, int priority) { AnnotationValue expect = xfield.getAnnotation(annotation); if (expect == null) { return; } if (DEBUG) { System.out.println("*** Found " + annotation + " annotation on " + xfield); } FieldOrMethodDescriptor descriptor = xfield.getFieldDescriptor(); Collection<BugInstance> warnings = warningsByField.get(descriptor); check(expect, descriptor, warnings, expectWarnings, priority, descriptor.getClassDescriptor()); }
protected int compareTo(FieldOrMethodName o) { int cmp; cmp = this.getClassDescriptor().compareTo(o.getClassDescriptor()); if (cmp != 0) { return cmp; } cmp = this.name.compareTo(o.getName()); if (cmp != 0) { return cmp; } cmp = this.signature.compareTo(o.getSignature()); if (cmp != 0) { return cmp; } return (this.isStatic ? 1 : 0) - (o.isStatic() ? 1 : 0); }
sortedMethodSet.addAll(propertyMap.keySet()); for (KeyType key : sortedMethodSet) { if (AnalysisContext.currentAnalysisContext().isApplicationClass(key.getClassDescriptor())) {
@Override public String toString() { return (isStatic ? "static " : "") + getClassDescriptor().getDottedClassName() + "." + name + signature; }
private void check(XMethod xmethod, ClassDescriptor annotation, boolean expectWarnings, int priority) { AnnotationValue expect = xmethod.getAnnotation(annotation); if (expect == null) { return; } if (DEBUG) { System.out.println("*** Found " + annotation + " annotation on " + xmethod); } FieldOrMethodDescriptor descriptor = xmethod.getMethodDescriptor(); Collection<BugInstance> warnings = warningsByMethod.get(descriptor); check(expect, descriptor, warnings, expectWarnings, priority, descriptor.getClassDescriptor()); }
private void check(XField xfield, ClassDescriptor annotation, boolean expectWarnings, int priority) { AnnotationValue expect = xfield.getAnnotation(annotation); if (expect == null) { return; } if (DEBUG) { System.out.println("*** Found " + annotation + " annotation on " + xfield); } FieldOrMethodDescriptor descriptor = xfield.getFieldDescriptor(); Collection<BugInstance> warnings = warningsByField.get(descriptor); check(expect, descriptor, warnings, expectWarnings, priority, descriptor.getClassDescriptor()); }
protected int compareTo(FieldOrMethodName o) { int cmp; cmp = this.getClassDescriptor().compareTo(o.getClassDescriptor()); if (cmp != 0) { return cmp; } cmp = this.name.compareTo(o.getName()); if (cmp != 0) { return cmp; } cmp = this.signature.compareTo(o.getSignature()); if (cmp != 0) { return cmp; } return (this.isStatic ? 1 : 0) - (o.isStatic() ? 1 : 0); }
sortedMethodSet.addAll(propertyMap.keySet()); for (KeyType key : sortedMethodSet) { if (AnalysisContext.currentAnalysisContext().isApplicationClass(key.getClassDescriptor())) {