aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-15 15:07:39 +0200
committerSven Gothel <[email protected]>2011-09-15 15:07:39 +0200
commit54b92eb3240d3d6e4686faf48504e1ecfb385869 (patch)
tree780a38150afd1885199f66a8e1558e509fba0477 /src/jogl/classes/com/jogamp/graph
parentd341b3160c4af3bc1efb91c995abb44368f628a5 (diff)
Graph Fonts: Decorate w/ PrivilegedAction if required
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph')
-rw-r--r--src/jogl/classes/com/jogamp/graph/font/FontFactory.java17
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 ) {