[libbluray-devel] [Git][videolan/libbluray][master] Cosmetics (rename function and variable)

Petri Hintukainen gitlab at videolan.org
Sun Dec 30 17:41:10 CET 2018


Petri Hintukainen pushed to branch master at VideoLAN / libbluray


Commits:
be356f5a by hpi1 at 2018-12-16T16:43:04Z
Cosmetics (rename function and variable)

- - - - -


2 changed files:

- src/libbluray/bdj/java/org/videolan/BDJClassLoader.java
- src/libbluray/bdj/java/org/videolan/Libbluray.java


Changes:

=====================================
src/libbluray/bdj/java/org/videolan/BDJClassLoader.java
=====================================
@@ -109,7 +109,7 @@ public class BDJClassLoader extends URLClassLoader {
         super(urls);
         this.xletClass = xletClass;
 
-        BDJClassLoaderAdapter a = Libbluray.getLoaderAdapter();
+        BDJClassLoaderAdapter a = Libbluray.getClassLoaderAdapter();
         if (a != null) {
             hideClasses = a.getHideClasses();
             bootClasses = a.getBootClasses();


=====================================
src/libbluray/bdj/java/org/videolan/Libbluray.java
=====================================
@@ -74,10 +74,10 @@ public class Libbluray {
      * Loader hooks
      */
 
-    private static BDJClassLoaderAdapter loaderAdapter = null;
+    private static BDJClassLoaderAdapter classLoaderAdapter = null;
 
-    protected static BDJClassLoaderAdapter getLoaderAdapter() {
-        return loaderAdapter;
+    protected static BDJClassLoaderAdapter getClassLoaderAdapter() {
+        return classLoaderAdapter;
     }
 
     private static void loadAdapter(String pkg) {
@@ -86,7 +86,7 @@ public class Libbluray {
         try {
             final Object obj = Class.forName("org.videolan." + pkg + ".Adapter").newInstance();
             if (obj instanceof BDJClassLoaderAdapter) {
-                loaderAdapter = (BDJClassLoaderAdapter)obj;
+                classLoaderAdapter = (BDJClassLoaderAdapter)obj;
             } else {
                 System.err.println("Unsupported interface in " + obj);
             }
@@ -363,7 +363,7 @@ public class Libbluray {
         synchronized (bdjoFilesLock) {
             bdjoFiles = null;
         }
-        loaderAdapter = null;
+        classLoaderAdapter = null;
     }
 
     /*



View it on GitLab: https://code.videolan.org/videolan/libbluray/commit/be356f5a471ffa875d43b6d4123b4da606e83822

-- 
View it on GitLab: https://code.videolan.org/videolan/libbluray/commit/be356f5a471ffa875d43b6d4123b4da606e83822
You're receiving this email because of your account on code.videolan.org.


More information about the libbluray-devel mailing list