[libbluray-devel] org.dvb.io.persistent.FileAttributes: preserve expiration date

hpi1 git at videolan.org
Wed Apr 13 11:34:37 CEST 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Apr 13 12:20:15 2016 +0300| [e5456d935ee2d000821a660db4569e676fd87d87] | committer: hpi1

org.dvb.io.persistent.FileAttributes: preserve expiration date

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

 .../bdj/java/org/dvb/io/persistent/FileAttributes.java        |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/libbluray/bdj/java/org/dvb/io/persistent/FileAttributes.java b/src/libbluray/bdj/java/org/dvb/io/persistent/FileAttributes.java
index 10dfa5f..a94f891 100644
--- a/src/libbluray/bdj/java/org/dvb/io/persistent/FileAttributes.java
+++ b/src/libbluray/bdj/java/org/dvb/io/persistent/FileAttributes.java
@@ -29,19 +29,19 @@ public class FileAttributes {
     public static final int PRIORITY_MEDIUM = 2;
     public static final int PRIORITY_HIGH = 3;
 
-    protected FileAttributes(Date expiration_date,
+    protected FileAttributes(Date expirationDate,
             FileAccessPermissions permissions, int priority) {
+        this.expirationDate = expirationDate;
         this.permissions = permissions;
         this.priority = priority;
     }
 
     public Date getExpirationDate() {
-        org.videolan.Logger.unimplemented(FileAttributes.class.getName(), "getExpirationDate");
-        return null;
+        return expirationDate;
     }
 
     public void setExpirationDate(Date d) {
-        // expiration dates are for losers
+        this.expirationDate = d;
     }
 
     public FileAccessPermissions getPermissions() {
@@ -77,4 +77,5 @@ public class FileAttributes {
 
     private FileAccessPermissions permissions;
     private int priority;
+    private Date expirationDate;
 }



More information about the libbluray-devel mailing list