mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix testdata
This commit is contained in:
+2
-2
@@ -1,9 +1,9 @@
|
||||
class Foo {
|
||||
void test(@org.jetbrains.annotations.NonNls String s, String s1) {
|
||||
if (s.equals("bar")) {}
|
||||
if (s1.equals("bar")) {}
|
||||
if (s1.equals(<warning descr="Hard coded string literal: \"bar\"">"bar"</warning>)) {}
|
||||
if ("bar".equals(s)) {}
|
||||
if ("bar".equals(s1)) {}
|
||||
if (<warning descr="Hard coded string literal: \"bar\"">"bar"</warning>.equals(s1)) {}
|
||||
if (("bar").equals((s))) {}
|
||||
if ((s).equals(("bar"))) {}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
<problem>
|
||||
<file>Test.java</file>
|
||||
<line>4</line>
|
||||
<module>testNonNlsEquals</module>
|
||||
<package><default></package>
|
||||
<entry_point TYPE="method" FQNAME="Foo void test(java.lang.String s, java.lang.String s1)" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Hard coded strings</problem_class>
|
||||
<description>Hard coded string literal: "bar"</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>Test.java</file>
|
||||
<line>6</line>
|
||||
<module>testNonNlsEquals</module>
|
||||
<package><default></package>
|
||||
<entry_point TYPE="method" FQNAME="Foo void test(java.lang.String s, java.lang.String s1)" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Hard coded strings</problem_class>
|
||||
<description>Hard coded string literal: "bar"</description>
|
||||
</problem>
|
||||
</problems>
|
||||
|
||||
Reference in New Issue
Block a user