Skip to content

Commit ae32dde

Browse files
committed
deal with warnings
1 parent 0be3aa2 commit ae32dde

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

core/src/processing/javafx/PSurfaceFX.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
import javafx.stage.Stage;
4646
import javafx.stage.WindowEvent;
4747
import javafx.util.Duration;
48-
4948
import processing.core.*;
5049

5150

@@ -679,7 +678,6 @@ protected void fxScrollEvent(ScrollEvent event) {
679678
}
680679

681680

682-
@SuppressWarnings("deprecation")
683681
protected void fxKeyEvent(javafx.scene.input.KeyEvent fxEvent) {
684682
int action = 0;
685683
EventType<? extends KeyEvent> et = fxEvent.getEventType();
@@ -714,6 +712,8 @@ protected void fxKeyEvent(javafx.scene.input.KeyEvent fxEvent) {
714712
keyChar, keyCode));
715713
}
716714

715+
716+
@SuppressWarnings("deprecation")
717717
private int getKeyCode(KeyEvent fxEvent) {
718718
if (fxEvent.getEventType() == KeyEvent.KEY_TYPED) {
719719
return 0;
@@ -723,10 +723,14 @@ private int getKeyCode(KeyEvent fxEvent) {
723723
switch (kc) {
724724
case ALT_GRAPH:
725725
return PConstants.ALT;
726+
default:
727+
break;
726728
}
727729
return kc.impl_getCode();
728730
}
729731

732+
733+
@SuppressWarnings("deprecation")
730734
private char getKeyChar(KeyEvent fxEvent) {
731735
if (fxEvent.getEventType() == KeyEvent.KEY_TYPED) {
732736
return fxEvent.getCharacter().charAt(0);
@@ -779,9 +783,9 @@ private char getKeyChar(KeyEvent fxEvent) {
779783
return PConstants.CODED;
780784
case ENTER:
781785
return '\n';
786+
default:
787+
break;
782788
}
783-
784789
return kc.impl_getChar().charAt(0);
785790
}
786-
787791
}

core/todo.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ X https://github.com/processing/processing/pull/3686
2222
X added note about AIOOBE seen earlier
2323
X Update LowLevelGL to use VBOs
2424
X https://github.com/processing/processing-docs/pull/289
25+
X Remove legacy GL functions from PGL
26+
X https://github.com/processing/processing/issues/3674
27+
X https://github.com/processing/processing/pull/3691
28+
X https://github.com/processing/processing/issues/3671
29+
X https://github.com/processing/processing/issues/3621
30+
X "Internal graphics not initialized yet"
31+
X https://github.com/processing/processing/issues/3690
32+
X https://github.com/processing/processing/pull/3692
2533

2634
cleaning
2735
X How do images behave when pixelDensity(2) is set?

0 commit comments

Comments
 (0)