From ef3887ecfceb08f826dc7dc8d841164aaaedd9bf Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sun, 8 Jun 2014 13:14:20 +0200 Subject: [PATCH] Changed two Java nested classes into static nested classes. Both do not need an implicitly created reference to enclosing class. --- android-project/src/org/libsdl/app/SDLActivity.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/android-project/src/org/libsdl/app/SDLActivity.java b/android-project/src/org/libsdl/app/SDLActivity.java index 1c063bbb9..79e8110cd 100644 --- a/android-project/src/org/libsdl/app/SDLActivity.java +++ b/android-project/src/org/libsdl/app/SDLActivity.java @@ -991,15 +991,14 @@ class SDLJoystickHandler { /* Actual joystick functionality available for API >= 12 devices */ class SDLJoystickHandler_API12 extends SDLJoystickHandler { - - class SDLJoystick { + + static class SDLJoystick { public int device_id; public String name; public ArrayList axes; public ArrayList hats; } - class RangeComparator implements Comparator - { + static class RangeComparator implements Comparator { @Override public int compare(InputDevice.MotionRange arg0, InputDevice.MotionRange arg1) { return arg0.getAxis() - arg1.getAxis();