diff options
Diffstat (limited to 'plugins/InspectionGadgets/test')
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 <code>n</code> #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 <code>Boolean.TRUE</code> #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 <code>hashcode</code> and 'hashCode' differ only by case #loc</description> + <description>Method name <code>hashcode</code> 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 <code>xX</code> and 'xx' differ only by case #loc</description> + <description>Method name <code>xX</code> 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 <code>fooBar</code> and 'fooBAr' differ only by case #loc</description> + <description>Method name <code>fooBar</code> 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 <code>fooBAr</code> and 'fooBar' differ only by case #loc</description> + <description>Method name <code>fooBAr</code> 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 <code>xx</code> and 'xX' differ only by case #loc</description> + <description>Method name <code>xx</code> and method name 'xX' differ only by case #loc</description> </problem> </problems>
\ No newline at end of file |