Skip to content

Commit

Permalink
Changed two Java nested classes into static nested classes.
Browse files Browse the repository at this point in the history
Both do not need an implicitly created reference to enclosing class.
  • Loading branch information
philippwiesemann committed Jun 8, 2014
1 parent d222091 commit ef3887e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions android-project/src/org/libsdl/app/SDLActivity.java
Expand Up @@ -991,15 +991,14 @@ public void pollInputDevices() {

/* 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();
Expand Down

0 comments on commit ef3887e

Please sign in to comment.