Skip to content

Commit

Permalink
Issue checkstyle#15218: Formatted input file of section 5.3 Camel cas…
Browse files Browse the repository at this point in the history
…e: defined to follow google style guide rules
  • Loading branch information
Zopsss authored and romani committed Jul 13, 2024
1 parent 6524b96 commit 3c17a90
Showing 1 changed file with 34 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -43,10 +43,9 @@ void XmlHttpRequest() {}
void YouTubeImporter() {}

void YoutubeImporter() {}
};
}
};

class AbbreviationsIncorrect {
class AbbreviationsIncorrect {

int newCustomerID;
// violation above 'newCustomerID.* more than '1' .* capital letters.'
Expand All @@ -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.'
};
}
}

0 comments on commit 3c17a90

Please sign in to comment.