Skip to content

Commit 0282d0e

Browse files
committed
Fix regression in MnemonicEditor#setValue
regression since 879f45f
1 parent 304cbec commit 0282d0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java/form/src/org/netbeans/modules/form/editors/MnemonicEditor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,11 @@ public void setAsText(String text) throws IllegalArgumentException {
133133
public void setValue(Object newValue) throws IllegalArgumentException {
134134
if (newValue instanceof Integer) {
135135
super.setValue(newValue);
136+
return;
136137
} else if (newValue instanceof Character) {
137138
char c = (Character) newValue;
138139
super.setValue((int)c);
140+
return;
139141
} else if (newValue instanceof String) {
140142
String text = (String) newValue;
141143
if (text.length() >= 1) {

0 commit comments

Comments
 (0)