Changed two Java nested classes into static nested classes.

Both do not need an implicitly created reference to enclosing class.
This commit is contained in:
Philipp Wiesemann 2014-06-08 13:14:20 +02:00
parent d2220917e0
commit ef3887ecfc
1 changed files with 3 additions and 4 deletions

View File

@ -992,14 +992,13 @@ class SDLJoystickHandler {
/* Actual joystick functionality available for API >= 12 devices */ /* Actual joystick functionality available for API >= 12 devices */
class SDLJoystickHandler_API12 extends SDLJoystickHandler { class SDLJoystickHandler_API12 extends SDLJoystickHandler {
class SDLJoystick { static class SDLJoystick {
public int device_id; public int device_id;
public String name; public String name;
public ArrayList<InputDevice.MotionRange> axes; public ArrayList<InputDevice.MotionRange> axes;
public ArrayList<InputDevice.MotionRange> hats; public ArrayList<InputDevice.MotionRange> hats;
} }
class RangeComparator implements Comparator<InputDevice.MotionRange> static class RangeComparator implements Comparator<InputDevice.MotionRange> {
{
@Override @Override
public int compare(InputDevice.MotionRange arg0, InputDevice.MotionRange arg1) { public int compare(InputDevice.MotionRange arg0, InputDevice.MotionRange arg1) {
return arg0.getAxis() - arg1.getAxis(); return arg0.getAxis() - arg1.getAxis();