Suggest adding "private static Function..." to java constants examples
Open
lang:java
- Dominant language
- HTML
- Stars
- 39.6k
- Forks
- 12.9k
- Avg merge
- 42m
- Merged PRs (30d)
- 15
Description
The Java style guide says that `private static final` variables where the value is immutable, are constants and should be in UPPER_CASE.
Read literally, this means that a function would be no exception:
private static final Function REMOVE_NUMBERS = s -> s.replaceAll("\\d","");
If this is the suggested style, I suggest adding it to the examples. The sentence below about most of these being nouns, probably doesn't apply in this case?
Contributor guide
Assessment
This issue has not been assessed yet.