You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
that constant vs non-constant distinction sounds very similar to immutable vs mutable. Is there a difference between constant-ness and immutability?
For programmatic enforcement of the constant naming scheme, we could look into requiring members whose types are annotated @Immutable be named according to the constant naming scheme in UPPER_SNAKE_CASE. That immutability is verified with https://errorprone.info/bugpattern/Immutable
I'm not sure this is worth the effort though, just for naming consistency.
What happened?
A code review flagged that this line should be in
UPPER_SNAKE_CASE
:If we care about this, it should be enforced as a lint rule instead of comment.
What did you want to happen?
Enable https://checkstyle.sourceforge.io/config_naming.html#ConstantName in the default checkstyle file.
The text was updated successfully, but these errors were encountered: