Skip to content

Commit 9608755

Browse files
committed
fix reported cls
1 parent 91b6d7e commit 9608755

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/mebigfatguy/fbcontrib/detect/UnitTestAssertionOddities.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ public void visitInnerClass(InnerClass obj) {
178178
JavaClass innerCls = Repository.lookupClass(innerName);
179179
for (AnnotationEntry ae : innerCls.getAnnotationEntries()) {
180180
if ("Lorg/junit/jupiter/api/Nested;".equals(ae.getAnnotationType())) {
181-
bugReporter.reportBug(
182-
new BugInstance(this, BugType.UTAO_JUNIT_ASSERTION_ODDITIES_NESTED_STATIC_CLASS.name(), NORMAL_PRIORITY).addClass(this));
181+
bugReporter.reportBug(new BugInstance(this, BugType.UTAO_JUNIT_ASSERTION_ODDITIES_NESTED_STATIC_CLASS.name(), NORMAL_PRIORITY)
182+
.addClass(innerCls));
183183
break;
184184
}
185185
}

0 commit comments

Comments
 (0)