diff options
author | Sven Gothel <[email protected]> | 2011-09-15 15:07:39 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-15 15:07:39 +0200 |
commit | 54b92eb3240d3d6e4686faf48504e1ecfb385869 (patch) | |
tree | 780a38150afd1885199f66a8e1558e509fba0477 /src/jogl/classes/com/jogamp/graph/font | |
parent | d341b3160c4af3bc1efb91c995abb44368f628a5 (diff) |
Graph Fonts: Decorate w/ PrivilegedAction if required
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/font')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/font/FontFactory.java | 17 |
1 files changed, 1 insertions, 16 deletions
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 ) { |