Skip to content

Commit

Permalink
Issue #34: Add javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
uschindler committed Mar 28, 2015
1 parent 78b62ba commit 971d50d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/de/thetaphi/forbiddenapis/Checker.java
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,12 @@ public final boolean hasNoSignatures() {
return forbiddenMethods.isEmpty() && forbiddenClasses.isEmpty() && forbiddenFields.isEmpty() && (!internalRuntimeForbidden);
}

/** Adds the given annotation class for suppressing errors. */
public final void addSuppressAnnotation(Class<? extends Annotation> anno) {
suppressAnnotations.add(Type.getDescriptor(anno));
}

/** Adds suppressing annotation name in binary form (dotted). The class name is not checked. */
public final void addSuppressAnnotation(String annoName) throws ParseException {
final Type type = Type.getObjectType(annoName.replace('.', '/'));
if (type.getSort() != Type.OBJECT) {
Expand Down

0 comments on commit 971d50d

Please sign in to comment.