[libbluray-devel] add final

hpi1 git at videolan.org
Wed Aug 30 08:50:06 CEST 2017


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Aug 28 17:57:45 2017 +0300| [0c2451b0417096c78caf6e444b820fc0d0aeefd3] | committer: hpi1

add final

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

 src/libbluray/bdj/java/org/videolan/bdjo/AppCache.java       |  6 +++---
 src/libbluray/bdj/java/org/videolan/bdjo/AppProfile.java     |  8 ++++----
 src/libbluray/bdj/java/org/videolan/bdjo/Bdjo.java           | 12 ++++++------
 .../bdj/java/org/videolan/bdjo/GraphicsResolution.java       |  6 +++---
 src/libbluray/bdj/java/org/videolan/bdjo/PlayListTable.java  |  6 +++---
 src/libbluray/bdj/java/org/videolan/bdjo/TerminalInfo.java   |  8 ++++----
 6 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/src/libbluray/bdj/java/org/videolan/bdjo/AppCache.java b/src/libbluray/bdj/java/org/videolan/bdjo/AppCache.java
index 14607621..5af8dd95 100644
--- a/src/libbluray/bdj/java/org/videolan/bdjo/AppCache.java
+++ b/src/libbluray/bdj/java/org/videolan/bdjo/AppCache.java
@@ -45,7 +45,7 @@ public class AppCache {
     public static final int JAR_FILE = 1;
     public static final int DIRECTORY = 2;
 
-    private int type;
-    private String refToName;
-    private String language;
+    private final int type;
+    private final String refToName;
+    private final String language;
 }
diff --git a/src/libbluray/bdj/java/org/videolan/bdjo/AppProfile.java b/src/libbluray/bdj/java/org/videolan/bdjo/AppProfile.java
index 7d8489ec..b36455bb 100644
--- a/src/libbluray/bdj/java/org/videolan/bdjo/AppProfile.java
+++ b/src/libbluray/bdj/java/org/videolan/bdjo/AppProfile.java
@@ -48,8 +48,8 @@ public class AppProfile {
                 + minor + ", profile=" + profile + "]";
     }
 
-    private short profile;
-    private byte major;
-    private byte minor;
-    private byte micro;
+    private final short profile;
+    private final byte major;
+    private final byte minor;
+    private final byte micro;
 }
diff --git a/src/libbluray/bdj/java/org/videolan/bdjo/Bdjo.java b/src/libbluray/bdj/java/org/videolan/bdjo/Bdjo.java
index c70783ed..2ee7f414 100644
--- a/src/libbluray/bdj/java/org/videolan/bdjo/Bdjo.java
+++ b/src/libbluray/bdj/java/org/videolan/bdjo/Bdjo.java
@@ -65,10 +65,10 @@ public class Bdjo {
                 + ", terminalInfo=" + terminalInfo + "]";
     }
 
-    private TerminalInfo terminalInfo;
-    private AppCache[] appCaches;
-    private PlayListTable accessiblePlaylists;
-    private AppEntry[] appTable;
-    private int keyInterestTable;
-    private String fileAccessInfo;
+    private final TerminalInfo terminalInfo;
+    private final AppCache[] appCaches;
+    private final PlayListTable accessiblePlaylists;
+    private final AppEntry[] appTable;
+    private final int keyInterestTable;
+    private final String fileAccessInfo;
 }
diff --git a/src/libbluray/bdj/java/org/videolan/bdjo/GraphicsResolution.java b/src/libbluray/bdj/java/org/videolan/bdjo/GraphicsResolution.java
index 89185dd4..2fa3ab4e 100644
--- a/src/libbluray/bdj/java/org/videolan/bdjo/GraphicsResolution.java
+++ b/src/libbluray/bdj/java/org/videolan/bdjo/GraphicsResolution.java
@@ -63,7 +63,7 @@ public class GraphicsResolution {
         return null;
     }
 
-    private int id;
-    private int width;
-    private int height;
+    private final int id;
+    private final int width;
+    private final int height;
 }
diff --git a/src/libbluray/bdj/java/org/videolan/bdjo/PlayListTable.java b/src/libbluray/bdj/java/org/videolan/bdjo/PlayListTable.java
index 178c30b6..c5b120e6 100644
--- a/src/libbluray/bdj/java/org/videolan/bdjo/PlayListTable.java
+++ b/src/libbluray/bdj/java/org/videolan/bdjo/PlayListTable.java
@@ -44,7 +44,7 @@ public class PlayListTable {
         return "PlayListTable [accessToAll=" + accessToAll + ", playLists=" + Arrays.toString(playLists) + "]";
     }
 
-    private boolean accessToAll;
-    private boolean autostartFirst;
-    private String[] playLists;
+    private final boolean accessToAll;
+    private final boolean autostartFirst;
+    private final String[] playLists;
 }
diff --git a/src/libbluray/bdj/java/org/videolan/bdjo/TerminalInfo.java b/src/libbluray/bdj/java/org/videolan/bdjo/TerminalInfo.java
index 3ed22e57..046c1ac2 100644
--- a/src/libbluray/bdj/java/org/videolan/bdjo/TerminalInfo.java
+++ b/src/libbluray/bdj/java/org/videolan/bdjo/TerminalInfo.java
@@ -49,8 +49,8 @@ public class TerminalInfo {
                 + ", titleSearchMask=" + titleSearchMask + "]";
     }
 
-    private String defaultFont;
-    private GraphicsResolution resolution;
-    private boolean menuCallMask;
-    private boolean titleSearchMask;
+    private final String defaultFont;
+    private final GraphicsResolution resolution;
+    private final boolean menuCallMask;
+    private final boolean titleSearchMask;
 }



More information about the libbluray-devel mailing list