[libbluray-devel] add missing synchronized

hpi1 git at videolan.org
Wed Aug 27 10:48:47 CEST 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Aug 27 11:33:09 2014 +0300| [4fc3fe408feb8574132c8048e2c88760aad5ef00] | committer: hpi1

add missing synchronized

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

 src/libbluray/bdj/java/java/awt/BDFontMetrics.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/java/java/awt/BDFontMetrics.java b/src/libbluray/bdj/java/java/awt/BDFontMetrics.java
index d0b63a9..847562f 100644
--- a/src/libbluray/bdj/java/java/awt/BDFontMetrics.java
+++ b/src/libbluray/bdj/java/java/awt/BDFontMetrics.java
@@ -139,7 +139,7 @@ public class BDFontMetrics extends FontMetrics {
         return (String[])fontNames.toArray(new String[fontNames.size()]);
     }
 
-    public static void registerFont(String name, int style, String path) {
+    public synchronized static void registerFont(String name, int style, String path) {
         File f = new File(path);
         path = f.getAbsolutePath();
         if (path != null) {



More information about the libbluray-devel mailing list