diff options
author | Harvey Harrison <[email protected]> | 2012-02-22 18:58:20 -0800 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-02-22 18:58:20 -0800 |
commit | 16881ee75c19ab6aa185e7c39c8fda11428a40a3 (patch) | |
tree | 995e5ddd80fdd60d3a4a93afcf6b7c2cbbde84b7 /src/classes | |
parent | 9d388c4ffdac2668054a63726717b8e91aaccb59 (diff) |
j3dutils: add generic annotation to PriviledgedAction in SimpleUniverse
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes')
-rw-r--r-- | src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java b/src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java index 9a1e2a4..02c44ff 100644 --- a/src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java +++ b/src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java @@ -405,18 +405,16 @@ public class SimpleUniverse extends VirtualUniverse { */ public static GraphicsConfiguration getPreferredConfiguration() { GraphicsConfigTemplate3D template = new GraphicsConfigTemplate3D(); - String stereo; // Check if the user has set the Java 3D stereo option. // Getting the system properties causes appletviewer to fail with a // security exception without a try/catch. - - stereo = (String) java.security.AccessController.doPrivileged( - new java.security.PrivilegedAction() { - public Object run() { - return System.getProperty("j3d.stereo"); - } - }); + String stereo = java.security.AccessController.doPrivileged( + new java.security.PrivilegedAction<String>() { + public String run() { + return System.getProperty("j3d.stereo"); + } + }); // update template based on properties. if (stereo != null) { |