We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e11941e + af1e2ee commit 1e245c4Copy full SHA for 1e245c4
java/src/processing/mode/java/pdex/Rename.java
@@ -129,8 +129,8 @@ public void componentHidden(ComponentEvent e) {
129
final String newName = textField.getText().trim();
130
if (!newName.isEmpty()) {
131
if (newName.length() >= 1 &&
132
- newName.chars().limit(1).allMatch(Character::isUnicodeIdentifierStart) &&
133
- newName.chars().skip(1).allMatch(Character::isUnicodeIdentifierPart)) {
+ newName.chars().limit(1).allMatch(Character::isJavaIdentifierStart) &&
+ newName.chars().skip(1).allMatch(Character::isJavaIdentifierPart)) {
134
rename(ps, binding, newName);
135
window.setVisible(false);
136
} else {
@@ -332,4 +332,4 @@ void dispose() {
332
window.dispose();
333
}
334
335
-}
+}
0 commit comments