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