Skip to content

Commit 447a70a

Browse files
committed
Clean up for coding standards and removal of unused fields
1 parent d1947a5 commit 447a70a

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/GlassViewEventHandler.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,9 @@ public Boolean run() {
237237
}
238238

239239
@SuppressWarnings("removal")
240-
@Override public boolean handleKeyEvent(View view, long time, int type, int key,
241-
char[] chars, int modifiers)
240+
@Override
241+
public boolean handleKeyEvent(View view, long time, int type, int key,
242+
char[] chars, int modifiers)
242243
{
243244
keyNotification.view = view;
244245
keyNotification.time = time;
@@ -247,7 +248,7 @@ public Boolean run() {
247248
keyNotification.chars = chars;
248249
keyNotification.modifiers = modifiers;
249250

250-
final boolean consumed = QuantumToolkit.runWithoutRenderLock(() -> {
251+
boolean consumed = QuantumToolkit.runWithoutRenderLock(() -> {
251252
return AccessController.doPrivileged(keyNotification, scene.getAccessControlContext());
252253
});
253254
return consumed;

modules/javafx.graphics/src/main/native-glass/mac/GlassView3D.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
BOOL didCommitText;
5555
BOOL isHiDPIAware;
5656

57-
NSEvent *lastKeyEvent;
57+
NSEvent *lastKeyEvent;
5858
}
5959

6060
- (id)initWithFrame:(NSRect)frame withJview:(jobject)jView withJproperties:(jobject)jproperties;

tests/system/src/test/java/test/robot/javafx/scene/MenuDoubleShortcutTest.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public class MenuDoubleShortcutTest {
5555

5656
static CountDownLatch startupLatch = new CountDownLatch(1);
5757

58-
static volatile Stage stage;
5958
static volatile TestApp testApp;
6059
static private final int delayMilliseconds = 100;
6160

@@ -164,10 +163,9 @@ private MenuItem createMenuItem(KeyCombination accelerator) {
164163
}
165164

166165
@Override
167-
public void start(Stage primaryStage) {
166+
public void start(Stage stage) {
168167

169168
testApp = this;
170-
stage = primaryStage;
171169

172170
Label label = new Label("Testing accelerator double processing");
173171

0 commit comments

Comments
 (0)