Skip to content

Commit 50659cb

Browse files
committed
refactor: rename Signlink statics
1 parent 2d5516b commit 50659cb

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/main/java/org/runejs/client/GameShell.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void run() {
120120
}
121121
}
122122
if (Game.signlink.gameShell != null) {
123-
Method method = Signlink.aMethod724;
123+
Method method = Signlink.setFocusCycleRoot;
124124
if (method != null) {
125125
try {
126126
method.invoke(Game.signlink.gameShell, Boolean.TRUE);

src/main/java/org/runejs/client/input/KeyFocusListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class KeyFocusListener implements KeyListener, FocusListener {
3131
}
3232

3333
public static void addListeners(Component arg0) {
34-
Method method = Signlink.aMethod729;
34+
Method method = Signlink.setFocusTraversalKeysEnabled;
3535
if(method != null) {
3636
try {
3737
method.invoke(arg0, Boolean.FALSE);
@@ -71,7 +71,7 @@ public static void method997() {
7171
anIntArray1564[91] = 42;
7272
anIntArray1564[92] = 74;
7373
anIntArray1564[93] = 43;
74-
if (Signlink.aMethod729 == null) {
74+
if (Signlink.setFocusTraversalKeysEnabled == null) {
7575
anIntArray1564[192] = 58;
7676
anIntArray1564[222] = 59;
7777
} else {

src/main/java/org/runejs/client/util/Signlink.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
import java.net.URL;
1212

1313
public class Signlink implements Runnable {
14-
public static Method aMethod724;
14+
public static Method setFocusCycleRoot;
1515
private static String homeDirectory;
16-
public static Method aMethod729;
16+
public static Method setFocusTraversalKeysEnabled;
1717
public static String javaVendor;
1818
public static int anInt737 = 3;
1919
public static String javaVersion;
@@ -47,17 +47,17 @@ public Signlink(boolean loadCache, GameShell gameShell, InetAddress netAddress,
4747
}
4848
try {
4949
if(gameShell == null)
50-
aMethod729 = Class.forName("java.awt.Component").getDeclaredMethod("setFocusTraversalKeysEnabled", Boolean.TYPE);
50+
setFocusTraversalKeysEnabled = Class.forName("java.awt.Component").getDeclaredMethod("setFocusTraversalKeysEnabled", Boolean.TYPE);
5151
else
52-
aMethod729 = gameShell.getClass().getMethod("setFocusTraversalKeysEnabled", Boolean.TYPE);
52+
setFocusTraversalKeysEnabled = gameShell.getClass().getMethod("setFocusTraversalKeysEnabled", Boolean.TYPE);
5353
} catch(Exception exception) {
5454
/* empty */
5555
}
5656
try {
5757
if(gameShell != null)
58-
aMethod724 = gameShell.getClass().getMethod("setFocusCycleRoot", Boolean.TYPE);
58+
setFocusCycleRoot = gameShell.getClass().getMethod("setFocusCycleRoot", Boolean.TYPE);
5959
else
60-
aMethod724 = Class.forName("java.awt.Container").getDeclaredMethod("setFocusCycleRoot", Boolean.TYPE);
60+
setFocusCycleRoot = Class.forName("java.awt.Container").getDeclaredMethod("setFocusCycleRoot", Boolean.TYPE);
6161
} catch(Exception exception) {
6262
/* empty */
6363
}

0 commit comments

Comments
 (0)