Add test case for #3627
This commit is contained in:
parent
07850f3423
commit
e7ec34ee65
@ -1832,6 +1832,18 @@ public class OuterClass {
|
||||
}
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description>#3627 FN with anonymous class</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
<code><![CDATA[
|
||||
public class Tester {
|
||||
Object anonymousClass = new Object() {
|
||||
private void foo() {} // unused, should report a warning
|
||||
};
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
Loading…
x
Reference in New Issue
Block a user