File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed
src/main/java/com/annimon/ownlang/modules/canvasfx Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1414
1515### Modules
1616- [ okhttp] Added ` okhttp.newClient() ` and ` HttpClientBuilderValue ` .
17+ - [ canvasfx] Updated JavaFX version.
1718
1819
1920## 2.0.0
Original file line number Diff line number Diff line change 1313- Исправлен visitor и проверки линтера внутри функций.
1414
1515### Modules
16- - [ okhttp] Добавлен ` okhttp.newClient() ` и ` HttpClientBuilderValue `
16+ - [ okhttp] Добавлен ` okhttp.newClient() ` и ` HttpClientBuilderValue ` .
17+ - [ canvasfx] Обновлена версия JavaFX.
1718
1819
1920## 2.0.0
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ plugins {
55}
66
77group = ' com.annimon.module'
8- version = ' 1.0 .0'
8+ version = ' 1.1 .0'
99
1010javafx {
11- version = " 17 "
11+ version = " 21 "
1212 modules = [ ' javafx.controls' , ' javafx.swing' ]
1313}
1414
Original file line number Diff line number Diff line change @@ -1019,12 +1019,12 @@ public Value execute(Value[] args) {
10191019 }
10201020
10211021 private static void handleEvent (Event event , final Function handler ) {
1022- if (event instanceof MouseEvent ) {
1023- handleMouseEvent (( MouseEvent ) event , handler );
1024- } else if (event instanceof KeyEvent ) {
1025- handleKeyEvent (( KeyEvent ) event , handler );
1026- } else if (event instanceof DragEvent ) {
1027- handleDragEvent (( DragEvent ) event , handler );
1022+ if (event instanceof MouseEvent me ) {
1023+ handleMouseEvent (me , handler );
1024+ } else if (event instanceof KeyEvent ke ) {
1025+ handleKeyEvent (ke , handler );
1026+ } else if (event instanceof DragEvent de ) {
1027+ handleDragEvent (de , handler );
10281028 }
10291029 }
10301030
You can’t perform that action at this time.
0 commit comments