diff --git a/src/main/java/jp/co/worksap/oss/findbugs/guava/UnexpectedAccessDetector.java b/src/main/java/jp/co/worksap/oss/findbugs/guava/UnexpectedAccessDetector.java index c78b685..296af85 100644 --- a/src/main/java/jp/co/worksap/oss/findbugs/guava/UnexpectedAccessDetector.java +++ b/src/main/java/jp/co/worksap/oss/findbugs/guava/UnexpectedAccessDetector.java @@ -49,7 +49,8 @@ public void sawOpcode(int opcode) { try { verifyVisibility(invokedClass, invokedMethod); } catch (ClassNotFoundException e) { - throw new IllegalStateException(e); + String message = String.format("Detector could not find %s, you should add this class into CLASSPATH", invokedClass.getDottedClassName()); + bugReporter.logError(message, e); } } }