Skip to content

Commit 0ce5b38

Browse files
committed
two semicolon bugs found by GCC
1 parent 21ad6ab commit 0ce5b38

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

sources/net.sf.j2s.java.core/src/swingjs/plaf/JSComponentUI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ protected void setJ2sMouseHandler() {
879879
// The DOM attributes applet and _frameViewer are necessary for proper
880880
// direction to the target
881881
J2S.unsetMouse(domNode);
882-
if (domNode == null);
882+
if (domNode == null)// BH GCC found semi here: ;
883883
updateDOMNode();
884884
DOMNode.setAttrs(domNode, "applet", applet, "_frameViewer", jc.getFrameViewer());
885885
J2S.setMouse(domNode, true);

sources/net.sf.j2s.java.core/src/swingjs/plaf/TextListener.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ void handleJSTextEvent(JSTextUI ui, int eventType, Object jqevent) {
142142
} else if (keyCode != KeyEvent.VK_BACK_SPACE){
143143
setCaret = false;
144144
}
145-
if (lastKeyEvent != KeyEvent.KEY_TYPED);// could be lastKeyEvent == 0 ??
145+
if (lastKeyEvent != KeyEvent.KEY_TYPED)
146+
// NOTE there was a ; inserted here commit Id c7fc88f
147+
// could be lastKeyEvent == 0 ??
146148
break;
147149
// fall through if this is a continuation press
148150
case KeyEvent.KEY_RELEASED:

0 commit comments

Comments
 (0)