Changed two Java nested classes into static nested classes.
authorPhilipp Wiesemann
Sun, 08 Jun 2014 13:14:20 +0200
changeset 8847adec4bd5f423
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
     1.1 --- a/android-project/src/org/libsdl/app/SDLActivity.java	Sun Jun 08 13:03:45 2014 +0200
     1.2 +++ b/android-project/src/org/libsdl/app/SDLActivity.java	Sun Jun 08 13:14:20 2014 +0200
     1.3 @@ -991,15 +991,14 @@
     1.4  
     1.5  /* Actual joystick functionality available for API >= 12 devices */
     1.6  class SDLJoystickHandler_API12 extends SDLJoystickHandler {
     1.7 -  
     1.8 -    class SDLJoystick {
     1.9 +
    1.10 +    static class SDLJoystick {
    1.11          public int device_id;
    1.12          public String name;
    1.13          public ArrayList<InputDevice.MotionRange> axes;
    1.14          public ArrayList<InputDevice.MotionRange> hats;
    1.15      }
    1.16 -    class RangeComparator implements Comparator<InputDevice.MotionRange>
    1.17 -    {
    1.18 +    static class RangeComparator implements Comparator<InputDevice.MotionRange> {
    1.19          @Override
    1.20          public int compare(InputDevice.MotionRange arg0, InputDevice.MotionRange arg1) {
    1.21              return arg0.getAxis() - arg1.getAxis();