[libbluray-devel] Make inner classes static

hpi1 git at videolan.org
Sun Feb 19 12:27:38 CET 2017


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Jan 10 10:18:59 2017 +0200| [9abc86da6fc1e815f3309539ced6e7ae011418e6] | committer: hpi1

Make inner classes static

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=9abc86da6fc1e815f3309539ced6e7ae011418e6
---

 src/libbluray/bdj/java/java/awt/BDRootWindow.java                     | 2 +-
 .../bdj/java/javax/tv/service/navigation/ServiceListImpl.java         | 2 +-
 src/libbluray/bdj/java/org/videolan/BDJAppProxy.java                  | 2 +-
 src/libbluray/bdj/java/org/videolan/BDJClassFileTransformer.java      | 4 ++--
 src/libbluray/bdj/java/org/videolan/BDJListeners.java                 | 2 +-
 src/libbluray/bdj/java/org/videolan/IxcRegistryImpl.java              | 2 +-
 src/libbluray/bdj/java/org/videolan/media/content/BDHandler.java      | 2 +-
 .../bdj/java/org/videolan/media/content/playlist/Handler.java         | 2 +-
 8 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/libbluray/bdj/java/java/awt/BDRootWindow.java b/src/libbluray/bdj/java/java/awt/BDRootWindow.java
index f34da83..32d25a1 100644
--- a/src/libbluray/bdj/java/java/awt/BDRootWindow.java
+++ b/src/libbluray/bdj/java/java/awt/BDRootWindow.java
@@ -144,7 +144,7 @@ public class BDRootWindow extends Frame {
         }
     }
 
-    private class RefreshTimerTask extends TimerTask {
+    private static class RefreshTimerTask extends TimerTask {
         public RefreshTimerTask(BDRootWindow window) {
             this.window = window;
             this.changeCount = window.changeCount;
diff --git a/src/libbluray/bdj/java/javax/tv/service/navigation/ServiceListImpl.java b/src/libbluray/bdj/java/javax/tv/service/navigation/ServiceListImpl.java
index 0ecb6d5..764809f 100644
--- a/src/libbluray/bdj/java/javax/tv/service/navigation/ServiceListImpl.java
+++ b/src/libbluray/bdj/java/javax/tv/service/navigation/ServiceListImpl.java
@@ -120,7 +120,7 @@ public class ServiceListImpl implements ServiceList {
         services.add(service);
     }
 
-    private class TitleComparator implements Comparator {
+    private static class TitleComparator implements Comparator {
         public int compare(Object obj1, Object obj2) {
             return ((TitleImpl)obj1).getTitleNum() - ((TitleImpl)obj2).getTitleNum();
         }
diff --git a/src/libbluray/bdj/java/org/videolan/BDJAppProxy.java b/src/libbluray/bdj/java/org/videolan/BDJAppProxy.java
index 1bacac0..7130d28 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJAppProxy.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJAppProxy.java
@@ -368,7 +368,7 @@ class BDJAppProxy implements DVBJProxy, Runnable {
     private Thread thread;
     private static final Logger logger = Logger.getLogger(BDJAppProxy.class.getName());
 
-    private class AppCommand {
+    private static class AppCommand {
         public AppCommand(int cmd, Object arg) {
             this.cmd = cmd;
             this.arg = arg;
diff --git a/src/libbluray/bdj/java/org/videolan/BDJClassFileTransformer.java b/src/libbluray/bdj/java/org/videolan/BDJClassFileTransformer.java
index 988e76e..f7cb8ca 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJClassFileTransformer.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJClassFileTransformer.java
@@ -63,7 +63,7 @@ class BDJClassFileTransformer
         return r;
     }
 
-    public class MyClassVisitor extends ClassVisitor {
+    private static class MyClassVisitor extends ClassVisitor {
         public MyClassVisitor(ClassVisitor cv) {
             super(Opcodes.ASM4, cv);
         }
@@ -76,7 +76,7 @@ class BDJClassFileTransformer
         }
     }
 
-    public class MyMethodVisitor extends MethodVisitor {
+    private static class MyMethodVisitor extends MethodVisitor {
         public MyMethodVisitor(MethodVisitor mv) {
             super(Opcodes.ASM4, mv);
         }
diff --git a/src/libbluray/bdj/java/org/videolan/BDJListeners.java b/src/libbluray/bdj/java/org/videolan/BDJListeners.java
index ba3a9c5..f75c8e6 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJListeners.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJListeners.java
@@ -141,7 +141,7 @@ public class BDJListeners {
         }
     }
 
-    private class PSR102Status {
+    private static class PSR102Status {
         private PSR102Status(int value) {
             this.value = value;
         }
diff --git a/src/libbluray/bdj/java/org/videolan/IxcRegistryImpl.java b/src/libbluray/bdj/java/org/videolan/IxcRegistryImpl.java
index 2413c2d..43891f5 100644
--- a/src/libbluray/bdj/java/org/videolan/IxcRegistryImpl.java
+++ b/src/libbluray/bdj/java/org/videolan/IxcRegistryImpl.java
@@ -359,7 +359,7 @@ public class IxcRegistryImpl {
      * store
      */
 
-    private class WrappedRemoteObj
+    private static class WrappedRemoteObj
     {
         final Remote         object;
         final BDJXletContext context;
diff --git a/src/libbluray/bdj/java/org/videolan/media/content/BDHandler.java b/src/libbluray/bdj/java/org/videolan/media/content/BDHandler.java
index 4e4cfb6..e3af4bb 100644
--- a/src/libbluray/bdj/java/org/videolan/media/content/BDHandler.java
+++ b/src/libbluray/bdj/java/org/videolan/media/content/BDHandler.java
@@ -593,7 +593,7 @@ public abstract class BDHandler implements Player, ServiceContentHandler {
         PlayerManager.getInstance().unregisterPlayer(this);
     }
 
-    private class PlayerAction extends BDJAction {
+    private static class PlayerAction extends BDJAction {
         private PlayerAction(BDHandler player, int action, Object param) {
             this(player, action, param, -1);
         }
diff --git a/src/libbluray/bdj/java/org/videolan/media/content/playlist/Handler.java b/src/libbluray/bdj/java/org/videolan/media/content/playlist/Handler.java
index 8134e0c..84497a2 100644
--- a/src/libbluray/bdj/java/org/videolan/media/content/playlist/Handler.java
+++ b/src/libbluray/bdj/java/org/videolan/media/content/playlist/Handler.java
@@ -432,7 +432,7 @@ public class Handler extends BDHandler {
         action.waitEnd();
     }
 
-    private class PlaylistPlayerAction extends BDJAction {
+    private static class PlaylistPlayerAction extends BDJAction {
         private PlaylistPlayerAction(Handler player, int action, int param) {
             this.player = player;
             this.action = action;



More information about the libbluray-devel mailing list