Skip to content

Commit 3740c1c

Browse files
committed
fix(sdk): better enum doc and behaviour
1 parent e0fedab commit 3740c1c

File tree

1 file changed

+2
-2
lines changed
  • engine/modules/entities/src/main/java/com/codingame/gameengine/module/entities

1 file changed

+2
-2
lines changed

engine/modules/entities/src/main/java/com/codingame/gameengine/module/entities/Text.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
public class Text extends TextureBasedEntity<Text> {
99

1010
/**
11-
* The list of supported font weight.
11+
* The list of supported font weights.
1212
*
1313
*/
1414
public static enum FontWeight {
1515
NORMAL, BOLD, BOLDER, LIGHTER;
1616

1717
public String toString() {
18-
return super.toString().toLowerCase();
18+
return name().toLowerCase();
1919
}
2020
}
2121

0 commit comments

Comments
 (0)