KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > checks > design > InputNonUtilityClass


1 package com.puppycrawl.tools.checkstyle.checks.design;
2
3 import java.awt.Dimension JavaDoc;
4 import javax.swing.JPanel JavaDoc;
5
6 /**
7  * Not a util class because it's not directly derived from java.lang.Object.
8  */

9 public class InputNonUtilityClass extends JPanel JavaDoc
10 {
11     /** HideUtilityClassConstructorCheck should not report this */
12     public InputNonUtilityClass()
13     {
14     this.setPreferredSize(new Dimension JavaDoc(100, 100));
15     }
16
17     public static void utilMethod()
18     {
19     System.out.println("I'm a utility method");
20     }
21 }
22
Popular Tags