View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.coding.illegaltype;
2   import java.util.ArrayList;
3   import java.awt.List;
4   import java.util.*;
5   import com.puppycrawl.tools.checkstyle.checks.coding.illegaltype.InputIllegalTypeGregorianCalendar;
6   import com.puppycrawl.tools.checkstyle.checks.coding.illegaltype.InputIllegalTypeGregorianCalendar.SubCalendar;
7   //configuration: "illegalClassNames": List, GregorianCalendar, java.io.File, SubCalendar, ArrayList
8   public class InputIllegalTypeSameFileName
9   {
10      InputIllegalTypeGregorianCalendar cal = AnObject.getInstance(); //WARNING
11      java.util.Date date = null;
12      SubCalendar subCalendar = null; //WARNING
13      
14      private static class AnObject extends InputIllegalTypeGregorianCalendar {
15  
16          public static InputIllegalTypeGregorianCalendar getInstance() //WARNING
17          {
18              return null;
19          }
20          
21      }
22      
23      private void foo() {
24          List l; //WARNING
25          java.io.File file = null; //WARNING
26      }
27      java.util.List<Integer> list = new ArrayList<>(); //WARNING
28      private ArrayList<String> values;
29      private Boolean d; //WARNING
30      private Boolean[] d1; //WARNING
31      private Boolean[][] d2; //WARNING
32  }