blob: 68c3307225efefe5eb888ac218095f2c2cdec255 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.puppycrawl.tools.checkstyle.checks.design;
import java.awt.Dimension;
import javax.swing.JPanel;
/**
* Not a util class because it's not directly derived from java.lang.Object.
*/
public class InputNonUtilityClass extends JPanel
{
/** HideUtilityClassConstructorCheck should not report this */
public InputNonUtilityClass()
{
this.setPreferredSize(new Dimension(100, 100));
}
public static void utilMethod()
{
System.identityHashCode("I'm a utility method");
}
}
|