Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/puppycrawl/tools/checkstyle/checks/design/InputNonUtilityClass.java


1   package com.puppycrawl.tools.checkstyle.checks.design;
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 InputNonUtilityClass extends JPanel
10  {
11      /** HideUtilityClassConstructorCheck should not report this */
12      public InputNonUtilityClass()
13      {
14    this.setPreferredSize(new Dimension(100, 100));
15      }
16  
17      public static void utilMethod()
18      {
19    System.out.println("I'm a utility method");
20      }
21  }