8246368: Add override for return tag of Modifier::toString

Reviewed-by: jjg
This commit is contained in:
Joe Darcy 2020-06-02 12:16:58 -07:00
parent 47cc808b98
commit 7e862f91dc

View File

@ -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);
}