[libbluray-devel] Restrict access to BDJXletContext methods

hpi1 git at videolan.org
Thu Apr 30 10:09:53 CEST 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Apr 30 11:07:08 2015 +0300| [862362e00f7882c3e7bd312e7420004bbcf12c8b] | committer: hpi1

Restrict access to BDJXletContext methods

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

 src/libbluray/bdj/java/org/videolan/BDJXletContext.java |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/libbluray/bdj/java/org/videolan/BDJXletContext.java b/src/libbluray/bdj/java/org/videolan/BDJXletContext.java
index def00fd..a22fc47 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJXletContext.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJXletContext.java
@@ -213,14 +213,14 @@ public class BDJXletContext implements javax.tv.xlet.XletContext, javax.microedi
         return true;
     }
 
-    public boolean putCallback(BDJAction cb)
+    protected boolean putCallback(BDJAction cb)
     {
         synchronized (this) {
             return putCallbackImpl(cb, callbackQueue);
         }
     }
 
-    public boolean putMediaCallback(BDJAction cb)
+    protected boolean putMediaCallback(BDJAction cb)
     {
         synchronized (this) {
             return putCallbackImpl(cb, mediaQueue);
@@ -347,7 +347,7 @@ public class BDJXletContext implements javax.tv.xlet.XletContext, javax.microedi
         return result;
     }
 
-    public static void stopThread(Thread thread, int timeout, String type) {
+    protected static void stopThread(Thread thread, int timeout, String type) {
         if (!waitThread(thread, timeout)) {
             thread.interrupt();
             if (!waitThread(thread, 200)) {
@@ -360,7 +360,7 @@ public class BDJXletContext implements javax.tv.xlet.XletContext, javax.microedi
         } catch (Throwable t) { }
     }
 
-    protected void stopIxcThreads() {
+    private void stopIxcThreads() {
         while (true) {
             Thread thread;
             synchronized (ixcThreads) {
@@ -391,7 +391,7 @@ public class BDJXletContext implements javax.tv.xlet.XletContext, javax.microedi
         }
     }
 
-    public void removeAllFAA() {
+    private void removeAllFAA() {
         Object[] faaArray;
         synchronized (faaList) {
             faaArray = faaList.toArray();



More information about the libbluray-devel mailing list