View Javadoc
1   package com.google.checkstyle.test.chapter5naming.rule53camelcase;
2   
3   class AbbreviationsCorrect {
4       
5       int newCustomerId;
6       
7       String innerStopwatch;
8       
9       boolean supportsIpv6OnIos;
10      
11      void XmlHttpRequest() {}
12      
13      void YouTubeImporter() {}
14      
15      void YoutubeImporter() {}
16      
17      class InnerGood {
18          
19          int newCustomerId;
20          
21          String innerStopwatch;
22          
23          boolean supportsIpv6OnIos;
24          
25          void XmlHttpRequest() {}
26          
27          void YouTubeImporter() {}
28          
29          void YoutubeImporter() {}
30      }
31      
32          AbbreviationsCorrect anonymousGood = new AbbreviationsCorrect() {
33          
34              int newCustomerId;
35          
36              String innerStopwatch;
37          
38              boolean supportsIpv6OnIos;
39          
40              void XmlHttpRequest() {}
41          
42              void YouTubeImporter() {}
43          
44              void YoutubeImporter() {}
45      };
46  }
47  
48  class AbbreviationsIncorrect {
49      
50      int newCustomerID; //warn
51      
52      boolean supportsIPv6OnIOS; //warn
53      
54      void XMLHTTPRequest() {} //warn
55      
56      class InnerBad {
57          
58          int newCustomerID; //warn
59          
60          boolean supportsIPv6OnIOS; //warn
61          
62          void XMLHTTPRequest() {} //warn
63      }
64      
65          AbbreviationsCorrect anonymousBad = new AbbreviationsCorrect() {
66          
67              int newCustomerID; //warn
68              
69              boolean supportsIPv6OnIOS; //warn
70              
71              void XMLHTTPRequest() {} //warn
72      };
73  }