/** * Add a class annotation. If this is the first class annotation added, it * becomes the primary class annotation. * * @param classDescriptor * the class to add * @return this object */ @Nonnull public BugInstance addClass(ClassDescriptor classDescriptor) { add(ClassAnnotation.fromClassDescriptor(classDescriptor)); return this; }
annotation.add(ClassAnnotation.fromClassDescriptor(getClassDescriptor())); annotation.add(MethodAnnotation.fromVisitedMethod(this)); annotation.add(SourceLineAnnotation.fromVisitedInstruction(this));
/** * Add a class annotation. If this is the first class annotation added, it * becomes the primary class annotation. * * @param classDescriptor * the class to add * @return this object */ @Nonnull public BugInstance addClass(ClassDescriptor classDescriptor) { add(ClassAnnotation.fromClassDescriptor(classDescriptor)); return this; }