Changed two Java nested classes into static nested classes.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 08 Jun 2014 13:14:20 +0200
changeset 8847 adec4bd5f423
parent 8846 e401b691077b
child 8848 b74331359016
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
--- a/android-project/src/org/libsdl/app/SDLActivity.java	Sun Jun 08 13:03:45 2014 +0200
+++ b/android-project/src/org/libsdl/app/SDLActivity.java	Sun Jun 08 13:14:20 2014 +0200
@@ -991,15 +991,14 @@
 
 /* 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<InputDevice.MotionRange> axes;
         public ArrayList<InputDevice.MotionRange> hats;
     }
-    class RangeComparator implements Comparator<InputDevice.MotionRange>
-    {
+    static class RangeComparator implements Comparator<InputDevice.MotionRange> {
         @Override
         public int compare(InputDevice.MotionRange arg0, InputDevice.MotionRange arg1) {
             return arg0.getAxis() - arg1.getAxis();