Преглед изворни кода

Changed two Java nested classes into static nested classes.

Both do not need an implicitly created reference to enclosing class.
Philipp Wiesemann пре 11 година
родитељ
комит
ef3887ecfc
1 измењених фајлова са 3 додато и 4 уклоњено
  1. 3 4
      android-project/src/org/libsdl/app/SDLActivity.java

+ 3 - 4
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<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();