unused declaration: a class with non-static fields is not a utility class

GitOrigin-RevId: 4c3f04dce18ee56fb0a0fe3beeee405fe91f750e
This commit is contained in:
Bas Leijdekkers
2019-10-14 11:04:47 +00:00
committed by intellij-monorepo-bot
parent 1e4040b95f
commit dbb8a2bac3
4 changed files with 50 additions and 18 deletions
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>NonUtility.java</file>
<line>1</line>
<problem_class>unused declaration</problem_class>
<description>Class is not instantiated.</description>
</problem>
<problem>
<file>NonUtility.java</file>
<line>2</line>
<problem_class>unused declaration</problem_class>
<description>Field has no usages.</description>
</problem>
<problem>
<file>NonUtility.java</file>
<line>3</line>
<problem_class>unused declaration</problem_class>
<description>Field has no usages.</description>
</problem>
<problem>
<file>NonUtility.java</file>
<line>5</line>
<problem_class>unused declaration</problem_class>
<description>Method is never used.</description>
</problem>
</problems>
@@ -0,0 +1,6 @@
public class NonUtility {
private int i;
private int j;
public static void utility() {}
}