Permalink
Browse files

warnings

  • Loading branch information...
mebigfatguy committed Aug 5, 2018
1 parent aa25b51 commit 722afb99ba406db4d65203b9269ccb065542115d
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/java/com/mebigfatguy/fbcontrib/detect/ImmatureClass.java
@@ -4,6 +4,7 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.bcel.Const;
import org.apache.bcel.Repository;
import org.apache.bcel.classfile.AnnotationEntry;
import org.apache.bcel.classfile.Field;
@@ -173,7 +174,7 @@ public void visitField(Field f) {
*/
@Override
public void sawOpcode(int seen) {
if ((seen == INVOKEVIRTUAL) && "printStackTrace".equals(getNameConstantOperand())
if ((seen == Const.INVOKEVIRTUAL) && "printStackTrace".equals(getNameConstantOperand())
&& SignatureBuilder.SIG_VOID_TO_VOID.equals(getSigConstantOperand())) {
bugReporter.reportBug(new BugInstance(this, BugType.IMC_IMMATURE_CLASS_PRINTSTACKTRACE.name(), NORMAL_PRIORITY).addClass(this).addMethod(this)
.addSourceLine(this));

0 comments on commit 722afb9

Please sign in to comment.