Skip to content

Java's naming convention for constants is not UpperCamelCase #512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
solimant opened this issue Apr 1, 2016 · 1 comment
Closed

Java's naming convention for constants is not UpperCamelCase #512

solimant opened this issue Apr 1, 2016 · 1 comment

Comments

@solimant
Copy link
Contributor

solimant commented Apr 1, 2016

On the "Naming Conventions" doc page, it says in the Constants, Values, Variable and Methods that:

Constant names should be in upper camel case... (similar to Java’s static final members)

Java does not follow upper camel case for constants naming convention, according to the Code Conventions for the Java TM Programming Language:

The names of variables declared class constants and of ANSI constants should be all uppercase with words separated by underscores ("_").

@SethTisue
Copy link
Member

it's defining what is "considered a constant" in this context, not asserting something about the Java convention for constants.

nonetheless, if that wasn't clear to you, that probably means the text should be altered to be clearer. a PR with a proposed improvement would be welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants