Skip to content

Commit 7e862f9

Browse files
committedJun 2, 2020
8246368: Add override for return tag of Modifier::toString
Reviewed-by: jjg
1 parent 47cc808 commit 7e862f9

File tree

1 file changed

+2
-0
lines changed
  • src/java.compiler/share/classes/javax/lang/model/element

1 file changed

+2
-0
lines changed
 

‎src/java.compiler/share/classes/javax/lang/model/element/Modifier.java

+2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ public String toString() {
111111
* The modifier name is the {@linkplain #name() name of the enum
112112
* constant} in lowercase and with any underscores ("{@code _}")
113113
* replaced with hyphens ("{@code -}").
114+
* @return the modifier's name
114115
*/
116+
@Override
115117
public String toString() {
116118
return name().toLowerCase(java.util.Locale.US);
117119
}

0 commit comments

Comments
 (0)
Please sign in to comment.