[libbluray-devel] Use static final for constant string
hpi1
git at videolan.org
Sat Nov 21 21:54:31 CET 2015
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat Nov 21 22:42:57 2015 +0200| [b486a9529a58bbe3a0e55d4168ea306e5213a3dc] | committer: hpi1
Use static final for constant string
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=b486a9529a58bbe3a0e55d4168ea306e5213a3dc
---
src/libbluray/bdj/java/org/videolan/VFSCache.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/libbluray/bdj/java/org/videolan/VFSCache.java b/src/libbluray/bdj/java/org/videolan/VFSCache.java
index 97133a7..22fe1f0 100644
--- a/src/libbluray/bdj/java/org/videolan/VFSCache.java
+++ b/src/libbluray/bdj/java/org/videolan/VFSCache.java
@@ -300,7 +300,7 @@ class VFSCache {
}
/* do not cache .m2ts streams */
- if (relPath.startsWith("BDMV" + File.separator + "STREAM" + File.separator)) {
+ if (relPath.startsWith(streamDir)) {
return;
}
@@ -355,6 +355,7 @@ class VFSCache {
private static final String jarDir = "BDMV" + File.separator + "JAR" + File.separator;
private static final String fontDir = "BDMV" + File.separator + "AUXDATA" + File.separator;
+ private static final String streamDir = "BDMV" + File.separator + "STREAM" + File.separator;
private static final Logger logger = Logger.getLogger(VFSCache.class.getName());
}
More information about the libbluray-devel
mailing list