From 54b92eb3240d3d6e4686faf48504e1ecfb385869 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 15 Sep 2011 15:07:39 +0200 Subject: Graph Fonts: Decorate w/ PrivilegedAction if required --- src/jogl/classes/com/jogamp/graph/font/FontFactory.java | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/jogl/classes/com/jogamp/graph') diff --git a/src/jogl/classes/com/jogamp/graph/font/FontFactory.java b/src/jogl/classes/com/jogamp/graph/font/FontFactory.java index 1e83668de..65799db6f 100644 --- a/src/jogl/classes/com/jogamp/graph/font/FontFactory.java +++ b/src/jogl/classes/com/jogamp/graph/font/FontFactory.java @@ -80,22 +80,7 @@ public class FontFactory { } public static final Font get(final URL url) throws IOException { - final IOException[] ioeA = new IOException[1]; - - Font f = (Font) AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - try { - return fontConstr.create(url); - } catch (IOException ioe) { - ioeA[0] = ioe; - } - return null; - } - }); - if(null != ioeA[0]) { - throw ioeA[0]; - } - return f; + return fontConstr.create(url); } public static boolean isPrintableChar( char c ) { -- cgit v1.2.3