summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java14
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) {