[libbluray-devel] Rename function

npzacs git at videolan.org
Sat Sep 16 12:39:49 CEST 2017


libbluray | branch: master | npzacs <npzacs at gmail.com> | Sat Sep 16 13:28:33 2017 +0300| [aca0c9bec43f46d19ad11583dbddcb1a8f21b5b2] | committer: npzacs

Rename function

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

 src/libbluray/bdj/java/org/videolan/BDJClassFileTransformer.java | 2 +-
 src/libbluray/bdj/java/org/videolan/BDJClassLoader.java          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libbluray/bdj/java/org/videolan/BDJClassFileTransformer.java b/src/libbluray/bdj/java/org/videolan/BDJClassFileTransformer.java
index f7cb8caa..71faae08 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJClassFileTransformer.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJClassFileTransformer.java
@@ -41,7 +41,7 @@ import org.objectweb.asm.Attribute;
 
 class BDJClassFileTransformer
 {
-    public byte[] transform(byte[] b, int off, int len)
+    public byte[] strip(byte[] b, int off, int len)
         throws ClassFormatError
     {
         logger.info("Trying to transform broken class file (" + len + " bytes)");
diff --git a/src/libbluray/bdj/java/org/videolan/BDJClassLoader.java b/src/libbluray/bdj/java/org/videolan/BDJClassLoader.java
index 0eccd30d..7c9c3ef5 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJClassLoader.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJClassLoader.java
@@ -212,7 +212,7 @@ public class BDJClassLoader extends URLClassLoader {
                 throw ce;
             }
             try {
-                b = new BDJClassFileTransformer().transform(b, 0, b.length);
+                b = new BDJClassFileTransformer().strip(b, 0, b.length);
                 return defineClass(b, 0, b.length);
             } catch (ThreadDeath td) {
                 throw td;



More information about the libbluray-devel mailing list