View Javadoc
1   package com.google.checkstyle.test.chapter5naming.rule53camelcase;
2   
3   class InputAbbreviationAsWordInTypeNameCheck {
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          InputAbbreviationAsWordInTypeNameCheck anonymousGood
33              = new InputAbbreviationAsWordInTypeNameCheck() {
34  
35              int newCustomerId;
36  
37              String innerStopwatch;
38  
39              boolean supportsIpv6OnIos;
40  
41              void XmlHttpRequest() {}
42  
43              void YouTubeImporter() {}
44  
45              void YoutubeImporter() {}
46      };
47  }
48  
49  class AbbreviationsIncorrect {
50  
51      int newCustomerID; // warn
52  
53      boolean supportsIPv6OnIOS; //warn
54  
55      void XMLHTTPRequest() {} //warn
56  
57      class InnerBad {
58  
59          int newCustomerID; // warn
60  
61          boolean supportsIPv6OnIOS; //warn
62  
63          void XMLHTTPRequest() {} //warn
64      }
65  
66          InputAbbreviationAsWordInTypeNameCheck anonymousBad
67              = new InputAbbreviationAsWordInTypeNameCheck() {
68  
69              int newCustomerID; // warn
70  
71              boolean supportsIPv6OnIOS; //warn
72  
73              void XMLHTTPRequest() {} //warn
74      };
75  }