verify #1505 [java] ConstantsInInterface false negative
This commit is contained in:
@ -42,4 +42,23 @@ public interface AnotherConstantInterface {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
<test-code>
|
||||
<description>#1505 [java] ConstantsInInterface false negative</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
<expected-linenumbers>11</expected-linenumbers>
|
||||
<code><![CDATA[
|
||||
package some.pkg;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public interface SomeInterfaceName {
|
||||
|
||||
/**
|
||||
* The logger service managers can use to record traces.
|
||||
*/
|
||||
Logger LOGGER = LoggerFactory.getLogger(SomeInterfaceName.class);
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
Reference in New Issue
Block a user