mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-02 14:38:28 +00:00
8246368: Add override for return tag of Modifier::toString
Reviewed-by: jjg
This commit is contained in:
parent
47cc808b98
commit
7e862f91dc
@ -111,7 +111,9 @@ public enum Modifier {
|
||||
* The modifier name is the {@linkplain #name() name of the enum
|
||||
* constant} in lowercase and with any underscores ("{@code _}")
|
||||
* replaced with hyphens ("{@code -}").
|
||||
* @return the modifier's name
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
return name().toLowerCase(java.util.Locale.US);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user