Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8246368: Add override for return tag of Modifier::toString
Reviewed-by: jjg
  • Loading branch information
jddarcy committed Jun 2, 2020
1 parent 47cc808 commit 7e862f91dc1d194787f68d75ff366bc4a652947c
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/java.compiler/share/classes/javax/lang/model/element/Modifier.java
@@ -111,7 +111,9 @@ public String toString() {
* 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);
}

0 comments on commit 7e862f9

Please sign in to comment.