View Javadoc
1   package com.google.checkstyle.test.chapter3filestructure.rule333orderingandspacing;
2   
3   import static java.awt.Button.ABORT;
4   import static java.io.File.createTempFile;
5   import static javax.swing.WindowConstants.*; // violation '.*' form of import should be avoided'
6   
7   import com.google.common.base.Ascii;
8   import java.awt.*; // violation 'Using the '.*' form of import should be avoided'
9   import java.io.File;
10  import java.io.IOException;
11  import java.io.InputStream;
12  import java.io.Reader;
13  import javax.swing.*; // violation 'Using the '.*' form of import should be avoided'
14  
15  /** Some javadoc. */
16  public class InputFormattedOrderingAndSpacing1 {
17    /** some javadoc. */
18    public static void main(String[] args) {
19      // Use of static imports
20      try {
21        File tempFile = createTempFile("temp", ".txt");
22      } catch (IOException e) {
23        e.printStackTrace();
24      }
25      int abortAction = ABORT;
26  
27      Frame frame = new Frame();
28  
29      JTable table = new JTable();
30      int closeOperation = EXIT_ON_CLOSE;
31  
32      File file = new File("example.txt");
33      InputStream inputStream = System.in;
34      Reader reader = null;
35  
36      char ascii = Ascii.BS;
37    }
38  }