diff --git a/src/it/resources/com/google/checkstyle/test/chapter5naming/rule53camelcase/InputCamelCaseDefined.java b/src/it/resources/com/google/checkstyle/test/chapter5naming/rule53camelcase/InputCamelCaseDefined.java index 47ccf4bee6a..36bc67fe608 100644 --- a/src/it/resources/com/google/checkstyle/test/chapter5naming/rule53camelcase/InputCamelCaseDefined.java +++ b/src/it/resources/com/google/checkstyle/test/chapter5naming/rule53camelcase/InputCamelCaseDefined.java @@ -2,35 +2,35 @@ class InputCamelCaseDefined { - int newCustomerId; + int newCustomerId; - String innerStopwatch; + String innerStopwatch; - boolean supportsIpv6OnIos; + boolean supportsIpv6OnIos; - void XmlHttpRequest() {} + void XmlHttpRequest() {} - void YouTubeImporter() {} + void YouTubeImporter() {} - void YoutubeImporter() {} + void YoutubeImporter() {} - class InnerGood { + class InnerGood { - int newCustomerId; + int newCustomerId; - String innerStopwatch; + String innerStopwatch; - boolean supportsIpv6OnIos; + boolean supportsIpv6OnIos; - void XmlHttpRequest() {} + void XmlHttpRequest() {} - void YouTubeImporter() {} + void YouTubeImporter() {} - void YoutubeImporter() {} - } + void YoutubeImporter() {} + } - InputCamelCaseDefined anonymousGood - = new InputCamelCaseDefined() { + InputCamelCaseDefined anonymousGood = + new InputCamelCaseDefined() { int newCustomerId; @@ -43,10 +43,9 @@ void XmlHttpRequest() {} void YouTubeImporter() {} void YoutubeImporter() {} - }; -} + }; -class AbbreviationsIncorrect { + class AbbreviationsIncorrect { int newCustomerID; // violation above 'newCustomerID.* more than '1' .* capital letters.' @@ -59,26 +58,27 @@ void XMLHTTPRequest() {} class InnerBad { - int newCustomerID; - // violation above 'newCustomerID.* more than '1' .* capital letters.' + int newCustomerID; + // violation above 'newCustomerID.* more than '1' .* capital letters.' - boolean supportsIPv6OnIOS; - // violation above 'supportsIPv6OnIOS.* more than '1' .* capital letters.' + boolean supportsIPv6OnIOS; + // violation above 'supportsIPv6OnIOS.* more than '1' .* capital letters.' - void XMLHTTPRequest() {} - // violation above 'XMLHTTPRequest.* more than '1' .* capital letters.' + void XMLHTTPRequest() {} + // violation above 'XMLHTTPRequest.* more than '1' .* capital letters.' } - InputCamelCaseDefined anonymousBad - = new InputCamelCaseDefined() { + InputCamelCaseDefined anonymousBad = + new InputCamelCaseDefined() { - int newCustomerID; - // violation above 'newCustomerID.* more than '1' .* capital letters.' + int newCustomerID; + // violation above 'newCustomerID.* more than '1' .* capital letters.' - boolean supportsIPv6OnIOS; - // violation above 'supportsIPv6OnIOS.* more than '1' .* capital letters.' + boolean supportsIPv6OnIOS; + // violation above 'supportsIPv6OnIOS.* more than '1' .* capital letters.' - void XMLHTTPRequest() {} - // violation above 'XMLHTTPRequest.* more than '1' .* capital letters.' - }; + void XMLHTTPRequest() {} + // violation above 'XMLHTTPRequest.* more than '1' .* capital letters.' + }; + } }