java: fix deadcode tests

GitOrigin-RevId: 8d170f38638a45e7a4304894e218ff0fbc02d8d9
This commit is contained in:
Bas Leijdekkers
2024-04-22 23:27:57 +00:00
committed by intellij-monorepo-bot
parent 3b492a9147
commit 4c7002e81c
8 changed files with 69 additions and 8 deletions
@@ -1,10 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>Main.java</file>
<line>1</line>
<offset>13</offset>
<length>4</length>
<description>No class references has been found. Class static initializer is not reachable.</description>
</problem>
<problem>
<file>Main.java</file>
<line>6</line>
<description>Method is never used.</description>
</problem>
<problem>
<file>Test.java</file>
<line>1</line>
<offset>13</offset>
<length>4</length>
<description>Class has one instantiation, but it is not reachable from entry points.</description>
</problem>
<problem>
<file>Test.java</file>
<line>1</line>
@@ -15,10 +29,5 @@
<line>2</line>
<description>&lt;ul&gt;&lt;li&gt;Method owner class is never instantiated OR&lt;/li&gt;&lt;li&gt;An instantiation is not reachable from entry points.&lt;/li&gt;&lt;/ul&gt;</description>
</problem>
<problem>
<file>Test.java</file>
<line>1</line>
<description>Class has one instantiation but it is not reachable from entry points.</description>
</problem>
</problems>
@@ -1,11 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>Test.java</file>
<line>1</line>
<description>No class references has been found. Class static initializer is not reachable.</description>
</problem>
<problem>
<file>Test.java</file>
<line>1</line>
<description>No class references has been found. Class static initializer is not reachable.</description>
</problem>
<problem>
<file>Test.java</file>
<line>2</line>
<description>Method has one usage but it is not reachable from entry points.</description>
</problem>
<problem>
<file>Main.java</file>
<line>1</line>
<description>No class references has been found. Class static initializer is not reachable.</description>
</problem>
<problem>
<file>Main.java</file>
<line>6</line>
@@ -8,6 +8,6 @@
<problem>
<file>Example.java</file>
<line>3</line>
<description>No class references have been found. Class static initializer is not reachable.</description>
<description>No class references has been found. Class static initializer is not reachable.</description>
</problem>
</problems>