[java-inspections] IDEA-382389 fix tests that started failing after removing all '#loc' references

GitOrigin-RevId: 5861880d0c0ecc45d9007a5593bb3e9c28235c75
This commit is contained in:
Bartek Pacia
2025-11-26 13:57:42 +00:00
committed by intellij-monorepo-bot
parent 575472ad28
commit 6612e5f0cc
42 changed files with 79 additions and 79 deletions
@@ -3,13 +3,13 @@
<problem>
<file>One.java</file>
<line>7</line>
<description>Static method &lt;code&gt;epibrate()&lt;/code&gt; is only used from class 'Two' #loc</description>
<description>Static method &lt;code&gt;epibrate()&lt;/code&gt; is only used from class 'Two'</description>
</problem>
<problem>
<file>One.java</file>
<line>5</line>
<description>Static field &lt;code&gt;SAUCE&lt;/code&gt; is only used from class 'Two' #loc</description>
<description>Static field &lt;code&gt;SAUCE&lt;/code&gt; is only used from class 'Two'</description>
<offset>29</offset>
<length>5</length>
</problem>
@@ -17,7 +17,7 @@
<problem>
<file>One.java</file>
<line>13</line>
<description>Static method &lt;code&gt;monger()&lt;/code&gt; is only used from class 'Two' #loc</description>
<description>Static method &lt;code&gt;monger()&lt;/code&gt; is only used from class 'Two'</description>
<offset>21</offset>
<length>6</length>
</problem>
@@ -4,6 +4,6 @@
<file>Main.java</file>
<line>1</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module java.base;/**/&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module java.base;/**/&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>Main.java</file>
<line>3</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import static java.lang.Math.max;/**/&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import static java.lang.Math.max;/**/&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>Main.java</file>
<line>3</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import java.lang.String;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import java.lang.String;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>a.java</file>
<line>1</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import java.util.*;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import java.util.*;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>Main.java</file>
<line>2</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import java.util.*;/**/&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import java.util.*;/**/&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>Main.java</file>
<line>2</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import pkg.Action.SuperInnerInterface;/**/&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import pkg.Action.SuperInnerInterface;/**/&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>X.java</file>
<line>2</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import java.util.List;/**/&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import java.util.List;/**/&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>X.java</file>
<line>3</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import java.util.List;/**/&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import java.util.List;/**/&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>X.java</file>
<line>1</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import java.util.ArrayList;/**/&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import java.util.ArrayList;/**/&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>Main.java</file>
<line>1</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module java.base;/**/&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module java.base;/**/&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>a.java</file>
<line>1</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import java.util.List;/**/&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import java.util.List;/**/&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,12 +4,12 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import java.util.List;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import java.util.List;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>3</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import java.util.ArrayList;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import java.util.ArrayList;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>X.java</file>
<line>1</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import java.util.Map.*;/**/&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import java.util.Map.*;/**/&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,12 +4,12 @@
<file>Main.java</file>
<line>1</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleB;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleB;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,18 +4,18 @@
<file>Main.java</file>
<line>1</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleB;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleB;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>3</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,12 +4,12 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>3</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,12 +4,12 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>3</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,12 +4,12 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>5</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import my.source.moduleC.*;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import my.source.moduleC.*;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,18 +4,18 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>3</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>5</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import my.source.moduleC.*;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import my.source.moduleC.*;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,18 +4,18 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>5</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import my.source.moduleB.*;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import my.source.moduleB.*;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>6</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import my.source.moduleC.*;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import my.source.moduleC.*;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,24 +4,24 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>3</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>5</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import my.source.moduleB.*;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import my.source.moduleB.*;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>6</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import my.source.moduleC.*;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import my.source.moduleC.*;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,12 +4,12 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>3</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,12 +4,12 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>3</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleD;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleD;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,18 +4,18 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>3</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleD;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleD;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>4</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleE;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,12 +4,12 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>5</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import my.source.moduleB.*;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import my.source.moduleB.*;&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,18 +4,18 @@
<file>Main.java</file>
<line>2</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleC;&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>3</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import module my.source.moduleE;/*unused*/&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import module my.source.moduleE;/*unused*/&lt;/code&gt;</description>
</problem>
<problem>
<file>Main.java</file>
<line>5</line>
<problem_class id="UNUSED_IMPORT" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused import</problem_class>
<description>Unused import &lt;code&gt;import my.source.moduleB.*;&lt;/code&gt; #loc</description>
<description>Unused import &lt;code&gt;import my.source.moduleB.*;&lt;/code&gt;</description>
</problem>
</problems>
@@ -3,6 +3,6 @@
<file>Test.java</file>
<line>7</line>
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unnecessarily qualified statically imported element</problem_class>
<description>Statically imported element 'foo' is unnecessarily qualified with &lt;code&gt;A&lt;/code&gt; #loc</description>
<description>Statically imported element 'foo' is unnecessarily qualified with &lt;code&gt;A&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,7 +4,7 @@
<file>Unsure.java</file>
<line>8</line>
<problem_class id="UnnecessarilyQualifiedStaticallyImportedElement" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unnecessarily qualified statically imported element</problem_class>
<description>Statically imported element 'x' is unnecessarily qualified with &lt;code&gt;Dubious&lt;/code&gt; #loc</description>
<description>Statically imported element 'x' is unnecessarily qualified with &lt;code&gt;Dubious&lt;/code&gt;</description>
<highlighted_element>Dubious</highlighted_element>
<language>JAVA</language>
<offset>4</offset>
@@ -5,7 +5,7 @@
<line>15</line>
<package>p</package>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unnecessarily qualified statically imported element</problem_class>
<description>Statically imported element 'a' is unnecessarily qualified with &lt;code&gt;B&lt;/code&gt; #loc</description>
<description>Statically imported element 'a' is unnecessarily qualified with &lt;code&gt;B&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,7 +4,7 @@
<file>C.java</file>
<line>12</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unnecessarily qualified statically imported element</problem_class>
<description>Statically imported element 'PI' is unnecessarily qualified with &lt;code&gt;Math&lt;/code&gt; #loc</description>
<description>Statically imported element 'PI' is unnecessarily qualified with &lt;code&gt;Math&lt;/code&gt;</description>
</problem>
@@ -12,6 +12,6 @@
<file>C.java</file>
<line>13</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unnecessarily qualified statically imported element</problem_class>
<description>Statically imported element 'abs' is unnecessarily qualified with &lt;code&gt;Math&lt;/code&gt; #loc</description>
<description>Statically imported element 'abs' is unnecessarily qualified with &lt;code&gt;Math&lt;/code&gt;</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>C.java</file>
<line>9</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unnecessarily qualified statically imported element</problem_class>
<description>Statically imported element 'currentThread' is unnecessarily qualified with &lt;code&gt;Thread&lt;/code&gt; #loc</description>
<description>Statically imported element 'currentThread' is unnecessarily qualified with &lt;code&gt;Thread&lt;/code&gt;</description>
</problem>
</problems>
@@ -5,7 +5,7 @@
<file>DoubleQualify.java</file>
<line>4</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unnecessary fully qualified name</problem_class>
<description>Qualifier &lt;code&gt;java.util&lt;/code&gt; is unnecessary and can be removed #loc</description>
<description>Qualifier &lt;code&gt;java.util&lt;/code&gt; is unnecessary and can be removed</description>
</problem>
</problems>
@@ -4,6 +4,6 @@
<file>Test.java</file>
<line>7</line>
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unnecessary fully qualified name</problem_class>
<description>Qualifier &lt;code&gt;java.util&lt;/code&gt; is unnecessary, and can be replaced with an import #loc</description>
<description>Qualifier &lt;code&gt;java.util&lt;/code&gt; is unnecessary, and can be replaced with an import</description>
</problem>
</problems>
@@ -5,56 +5,56 @@
<file>UnnecessaryFullyQualifiedName.java</file>
<line>13</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unnecessary fully qualified name</problem_class>
<description>Qualifier &lt;code&gt;java.util&lt;/code&gt; is unnecessary, and can be replaced with an import #loc</description>
<description>Qualifier &lt;code&gt;java.util&lt;/code&gt; is unnecessary, and can be replaced with an import</description>
</problem>
<problem>
<file>UnnecessaryFullyQualifiedName.java</file>
<line>14</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unnecessary fully qualified name</problem_class>
<description>Qualifier &lt;code&gt;java.util&lt;/code&gt; is unnecessary, and can be replaced with an import #loc</description>
<description>Qualifier &lt;code&gt;java.util&lt;/code&gt; is unnecessary, and can be replaced with an import</description>
</problem>
<problem>
<file>UnnecessaryFullyQualifiedName.java</file>
<line>15</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unnecessary fully qualified name</problem_class>
<description>Qualifier &lt;code&gt;java.util&lt;/code&gt; is unnecessary, and can be replaced with an import #loc</description>
<description>Qualifier &lt;code&gt;java.util&lt;/code&gt; is unnecessary, and can be replaced with an import</description>
</problem>
<problem>
<file>UnnecessaryFullyQualifiedName.java</file>
<line>17</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unnecessary fully qualified name</problem_class>
<description>Qualifier &lt;code&gt;java.lang&lt;/code&gt; is unnecessary and can be removed #loc</description>
<description>Qualifier &lt;code&gt;java.lang&lt;/code&gt; is unnecessary and can be removed</description>
</problem>
<problem>
<file>UnnecessaryFullyQualifiedName.java</file>
<line>18</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unnecessary fully qualified name</problem_class>
<description>Qualifier &lt;code&gt;java.lang&lt;/code&gt; is unnecessary and can be removed #loc</description>
<description>Qualifier &lt;code&gt;java.lang&lt;/code&gt; is unnecessary and can be removed</description>
</problem>
<problem>
<file>UnnecessaryFullyQualifiedName.java</file>
<line>41</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unnecessary fully qualified name</problem_class>
<description>Qualifier &lt;code&gt;java. util&lt;/code&gt; is unnecessary, and can be replaced with an import #loc</description>
<description>Qualifier &lt;code&gt;java. util&lt;/code&gt; is unnecessary, and can be replaced with an import</description>
</problem>
<problem>
<file>UnnecessaryFQNJavadoc.java</file>
<line>4</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unnecessary fully qualified name</problem_class>
<description>Qualifier &lt;code&gt;java.util&lt;/code&gt; is unnecessary and can be removed #loc</description>
<description>Qualifier &lt;code&gt;java.util&lt;/code&gt; is unnecessary and can be removed</description>
</problem>
<problem>
<file>UnnecessaryFQNJavadoc.java</file>
<line>5</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unnecessary fully qualified name</problem_class>
<description>Qualifier &lt;code&gt;java.util&lt;/code&gt; is unnecessary, and can be replaced with an import #loc</description>
<description>Qualifier &lt;code&gt;java.util&lt;/code&gt; is unnecessary, and can be replaced with an import</description>
</problem>
@@ -113,31 +113,31 @@ public class InspectionResultExportTest extends LightJava9ModulesCodeInsightFixt
<file>Foo.java</file>
<line>4</line>
<problem_class>Simplifiable conditional expression</problem_class>
<description>&lt;code&gt;0 == 0 ? 0 : 0&lt;/code&gt; can be simplified to '0' #loc</description>
<description>&lt;code&gt;0 == 0 ? 0 : 0&lt;/code&gt; can be simplified to '0'</description>
</problem>
<problem>
<file>Foo.java</file>
<line>5</line>
<problem_class>Simplifiable conditional expression</problem_class>
<description>&lt;code&gt;0 == 0 ? 0 : 0&lt;/code&gt; can be simplified to '0' #loc</description>
<description>&lt;code&gt;0 == 0 ? 0 : 0&lt;/code&gt; can be simplified to '0'</description>
</problem>
<problem>
<file>Foo.java</file>
<line>6</line>
<problem_class>Simplifiable conditional expression</problem_class>
<description>&lt;code&gt;0 == 0 ? 0 : 0&lt;/code&gt; can be simplified to '0' #loc</description>
<description>&lt;code&gt;0 == 0 ? 0 : 0&lt;/code&gt; can be simplified to '0'</description>
</problem>
<problem>
<file>Foo.java</file>
<line>7</line>
<problem_class>Simplifiable conditional expression</problem_class>
<description>&lt;code&gt;0 == 0 ? 0 : 0&lt;/code&gt; can be simplified to '0' #loc</description>
<description>&lt;code&gt;0 == 0 ? 0 : 0&lt;/code&gt; can be simplified to '0'</description>
</problem>
<problem>
<file>Foo.java</file>
<line>8</line>
<problem_class>Simplifiable conditional expression</problem_class>
<description>&lt;code&gt;0 == 0 ? 0 : 0&lt;/code&gt; can be simplified to '0' #loc</description>
<description>&lt;code&gt;0 == 0 ? 0 : 0&lt;/code&gt; can be simplified to '0'</description>
</problem></problems>""");
InspectionTestUtil.compareWithExpected(expectedDfaResults, dfaResults, false);
@@ -12,7 +12,7 @@ public class MethodOnlyUsedFromInnerClassInspectionTest extends LightJavaInspect
public void testSimple() {
doTest("""
class X {
private void /*Method 'foo()'is only used from inner class 'Inner'*/foo/**/() {}
private void /*Method 'foo()' is only used from inner class 'Inner'*/foo/**/() {}
\s
class Inner {
void test() {foo();}
@@ -23,7 +23,7 @@ public class MethodOnlyUsedFromInnerClassInspectionTest extends LightJavaInspect
public void testAnonymous() {
doTest("""
class X {
private int /*Method 'foo()'is only used from an anonymous class derived from 'Inner'*/foo/**/() {return 5;}
private int /*Method 'foo()' is only used from an anonymous class derived from 'Inner'*/foo/**/() {return 5;}
\s
void test() {
new Inner(1) {
@@ -53,7 +53,7 @@ public class MethodOnlyUsedFromInnerClassInspectionTest extends LightJavaInspect
public void testLocalClass() {
doTest("""
class X {
private void /*Method 'foo()'is only used from local class 'Local'*/foo/**/() {}
private void /*Method 'foo()' is only used from local class 'Local'*/foo/**/() {}
\s
void x() {
class Local {