harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r506954 - /harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Policy.java
Date Tue, 13 Feb 2007 10:20:50 GMT
Author: smishura
Date: Tue Feb 13 02:20:49 2007
New Revision: 506954

URL: http://svn.apache.org/viewvc?view=rev&rev=506954
Log:
Fix warnings

Modified:
    harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Policy.java

Modified: harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Policy.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Policy.java?view=diff&rev=506954&r1=506953&r2=506954
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Policy.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Policy.java
Tue Feb 13 02:20:49 2007
@@ -148,11 +148,11 @@
         }
 
         // TODO accurate classloading
-        return (Policy) AccessController.doPrivileged(new PrivilegedAction() {
+        return AccessController.doPrivileged(new PrivilegedAction<Policy>() {
 
-            public Object run() {
+            public Policy run() {
                 try {
-                    return Class.forName(defaultClass, true,
+                    return (Policy) Class.forName(defaultClass, true,
                             ClassLoader.getSystemClassLoader()).newInstance();
                 }
                 catch (Exception e) {



Mime
View raw message