Skip to content

Commit

Permalink
Fix small boolean mistake, add isMutable
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebFenton committed Oct 17, 2018
1 parent 39678b9 commit b076217
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ public boolean isImmutable(String className) {
return immutableClasses.contains(className);
}

public boolean isMutable(String className) {
return !isImmutable(className);
}

/**
* Safe classes are Java API classes which are safe to instantiate, load, and statically
* initialize. Safe methods are methods of Java classes which are safe to execute. Only classes
Expand All @@ -76,7 +80,7 @@ public boolean isSafe(String typeSignature) {
}

public boolean isUnsafeMethod(String methodDescriptor) {
return !unsafeMethods.contains(methodDescriptor);
return unsafeMethods.contains(methodDescriptor);
}

}

0 comments on commit b076217

Please sign in to comment.