[libbluray-devel] Make comprator serializable

hpi1 git at videolan.org
Mon Apr 3 14:23:55 CEST 2017


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Apr  3 12:25:47 2017 +0300| [7eee8cf348fa1f2b8082cb37335e727d5604fe91] | committer: hpi1

Make comprator serializable

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

 .../bdj/java/javax/tv/service/navigation/ServiceListImpl.java         | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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 764809f..9dd0184 100644
--- a/src/libbluray/bdj/java/javax/tv/service/navigation/ServiceListImpl.java
+++ b/src/libbluray/bdj/java/javax/tv/service/navigation/ServiceListImpl.java
@@ -22,6 +22,8 @@ import java.util.Arrays;
 import java.util.Comparator;
 import java.util.LinkedList;
 
+import java.io.Serializable;
+
 import javax.tv.locator.Locator;
 import javax.tv.locator.InvalidLocatorException;
 import javax.tv.service.Service;
@@ -120,7 +122,7 @@ public class ServiceListImpl implements ServiceList {
         services.add(service);
     }
 
-    private static class TitleComparator implements Comparator {
+    private static class TitleComparator implements Comparator, Serializable {
         public int compare(Object obj1, Object obj2) {
             return ((TitleImpl)obj1).getTitleNum() - ((TitleImpl)obj2).getTitleNum();
         }



More information about the libbluray-devel mailing list