trustathsh / ironcommon

A library of helper methods and "stuff" like code convention files used by (all) iron* software.
Apache License 2.0
0 stars 0 forks source link

Checkstyle: camel-case in method names #2

Open bahellma opened 9 years ago

bahellma commented 9 years ago

Checkstyle policy does not allow camel case when multiple upper case letters follow each other; it always expects there to be at least one lower case letter

methodNameA is allowed, methodNameAB is not allowed

ermerp commented 9 years ago

This rule comes form the android code style rule "Treat Acronyms as Words" (https://source.android.com/source/code-style.html)

"Treat acronyms and abbreviations as words in naming variables, methods, and classes. The names are much more readable:"

Example: Good: XmlHttpRequest Bad: XMLHTTPRequest