Skip to content

Commit c812f72

Browse files
committed
readability fixes
1 parent 33ed374 commit c812f72

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

app/src/processing/app/Language.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ private Language() {
6161
// Set available languages
6262
languages = new HashMap<String, String>();
6363
for (String code : listSupported()) {
64-
languages.put(code, Locale.forLanguageTag(code).getDisplayLanguage(Locale.forLanguageTag(code)));
64+
Locale locale = Locale.forLanguageTag(code);
65+
languages.put(code, locale.getDisplayLanguage(locale));
6566
}
6667

6768
// Set default language

core/src/processing/core/PSurfaceFX.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ protected void fxMouseEvent(MouseEvent fxEvent) {
609609
}
610610

611611
// If running on Mac OS, allow ctrl-click as right mouse.
612-
// (Verified to be needed with Java 8u45 and JavaFX)
612+
// Verified to be necessary with Java 8u45.
613613
if (PApplet.platform == PConstants.MACOSX &&
614614
fxEvent.isControlDown() &&
615615
button == PConstants.LEFT) {

0 commit comments

Comments
 (0)