summaryrefslogtreecommitdiff
path: root/plugins/InspectionGadgets/test
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/InspectionGadgets/test')
-rw-r--r--plugins/InspectionGadgets/test/com/siyeh/igtest/jdk/auto_unboxing/AutoUnboxing.java4
-rw-r--r--plugins/InspectionGadgets/test/com/siyeh/igtest/jdk/auto_unboxing/expected.xml6
-rw-r--r--plugins/InspectionGadgets/test/com/siyeh/igtest/naming/method_names_differ_only_by_case/expected.xml10
3 files changed, 15 insertions, 5 deletions
diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/jdk/auto_unboxing/AutoUnboxing.java b/plugins/InspectionGadgets/test/com/siyeh/igtest/jdk/auto_unboxing/AutoUnboxing.java
index a39bd53e4407..e598f0758a64 100644
--- a/plugins/InspectionGadgets/test/com/siyeh/igtest/jdk/auto_unboxing/AutoUnboxing.java
+++ b/plugins/InspectionGadgets/test/com/siyeh/igtest/jdk/auto_unboxing/AutoUnboxing.java
@@ -59,4 +59,8 @@ public class AutoUnboxing {
if ((boolean) b) {}
if ((int)n) {}
}
+
+ boolean polyadic() {
+ return true && Boolean.TRUE && true;
+ }
}
diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/jdk/auto_unboxing/expected.xml b/plugins/InspectionGadgets/test/com/siyeh/igtest/jdk/auto_unboxing/expected.xml
index 431f5ca55078..a1ceb62b0486 100644
--- a/plugins/InspectionGadgets/test/com/siyeh/igtest/jdk/auto_unboxing/expected.xml
+++ b/plugins/InspectionGadgets/test/com/siyeh/igtest/jdk/auto_unboxing/expected.xml
@@ -106,4 +106,10 @@
<description>Auto-unboxing &lt;code&gt;n&lt;/code&gt; #loc</description>
</problem>
+ <problem>
+ <file>AutoUnboxing.java</file>
+ <line>64</line>
+ <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Auto-unboxing</problem_class>
+ <description>Auto-unboxing &lt;code&gt;Boolean.TRUE&lt;/code&gt; #loc</description>
+ </problem>
</problems> \ No newline at end of file
diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/naming/method_names_differ_only_by_case/expected.xml b/plugins/InspectionGadgets/test/com/siyeh/igtest/naming/method_names_differ_only_by_case/expected.xml
index 570e237c7063..3c9a518635fc 100644
--- a/plugins/InspectionGadgets/test/com/siyeh/igtest/naming/method_names_differ_only_by_case/expected.xml
+++ b/plugins/InspectionGadgets/test/com/siyeh/igtest/naming/method_names_differ_only_by_case/expected.xml
@@ -4,35 +4,35 @@
<file>MethodNamesDifferOnlyByCase.java</file>
<line>20</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Method names differing only by case</problem_class>
- <description>Method names &lt;code&gt;hashcode&lt;/code&gt; and 'hashCode' differ only by case #loc</description>
+ <description>Method name &lt;code&gt;hashcode&lt;/code&gt; and method name 'hashCode' differ only by case #loc</description>
</problem>
<problem>
<file>MethodNamesDifferOnlyByCase.java</file>
<line>30</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Method names differing only by case</problem_class>
- <description>Method names &lt;code&gt;xX&lt;/code&gt; and 'xx' differ only by case #loc</description>
+ <description>Method name &lt;code&gt;xX&lt;/code&gt; and method name 'xx' differ only by case #loc</description>
</problem>
<problem>
<file>MethodNamesDifferOnlyByCase.java</file>
<line>5</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Method names differing only by case</problem_class>
- <description>Method names &lt;code&gt;fooBar&lt;/code&gt; and 'fooBAr' differ only by case #loc</description>
+ <description>Method name &lt;code&gt;fooBar&lt;/code&gt; and method name 'fooBAr' differ only by case #loc</description>
</problem>
<problem>
<file>MethodNamesDifferOnlyByCase.java</file>
<line>10</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Method names differing only by case</problem_class>
- <description>Method names &lt;code&gt;fooBAr&lt;/code&gt; and 'fooBar' differ only by case #loc</description>
+ <description>Method name &lt;code&gt;fooBAr&lt;/code&gt; and method name 'fooBar' differ only by case #loc</description>
</problem>
<problem>
<file>MethodNamesDifferOnlyByCase.java</file>
<line>29</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Method names differing only by case</problem_class>
- <description>Method names &lt;code&gt;xx&lt;/code&gt; and 'xX' differ only by case #loc</description>
+ <description>Method name &lt;code&gt;xx&lt;/code&gt; and method name 'xX' differ only by case #loc</description>
</problem>
</problems> \ No newline at end of file