-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
toLowerCase either needs hardcode text or use Locale.ROOT because of …
…Locale (tr_TR) issues
- Loading branch information
Showing
8 changed files
with
34 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
package net.miginfocom.layout; | ||
|
||
public enum AlignX { | ||
LEADING, LEFT, CENTER, RIGHT, TRAILING; | ||
LEADING("leading"), LEFT("left"), CENTER("center"), RIGHT("right"), TRAILING("trailing"); | ||
|
||
private final String code; // toString().toLowerCase() is not an alternative because of Locale issues (e.g. tr_TR) | ||
|
||
private AlignX(String code) { | ||
this.code = code; | ||
} | ||
|
||
public String code() { | ||
return code; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
package net.miginfocom.layout; | ||
|
||
public enum AlignY { | ||
TOP, CENTER, BOTTOM, BASELINE; | ||
TOP("top"), CENTER("center"), BOTTOM("bottom"), BASELINE("baseline"); | ||
|
||
private final String code; // toString().toLowerCase() is not an alternative because of Locale issues (e.g. tr_TR) | ||
|
||
private AlignY(String code) { | ||
this.code = code; | ||
} | ||
|
||
public String code() { | ||
return code; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters