harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r482905 - in /harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/cert: CertPathBuilder.java CertPathValidator.java CertStore.java
Date Wed, 06 Dec 2006 05:25:27 GMT
Author: smishura
Date: Tue Dec  5 21:25:23 2006
New Revision: 482905

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

Modified:
    harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/cert/CertPathBuilder.java
    harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/cert/CertPathValidator.java
    harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/cert/CertStore.java

Modified: harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/cert/CertPathBuilder.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/cert/CertPathBuilder.java?view=diff&rev=482905&r1=482904&r2=482905
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/cert/CertPathBuilder.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/cert/CertPathBuilder.java
Tue Dec  5 21:25:23 2006
@@ -159,13 +159,12 @@
      * @com.intel.drl.spec_ref
      */
     public static final String getDefaultType() {
-        String defaultType = (String) AccessController.doPrivileged(
-                new java.security.PrivilegedAction() {
-                    public Object run() {
+        String defaultType = AccessController
+                .doPrivileged(new java.security.PrivilegedAction<String>() {
+                    public String run() {
                         return Security.getProperty(PROPERTYNAME);
                     }
-                }
-            );
+                });
         return (defaultType != null ? defaultType : DEFAULTPROPERTY);
     }
 }

Modified: harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/cert/CertPathValidator.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/cert/CertPathValidator.java?view=diff&rev=482905&r1=482904&r2=482905
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/cert/CertPathValidator.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/cert/CertPathValidator.java
Tue Dec  5 21:25:23 2006
@@ -158,13 +158,12 @@
      *  
      */
     public static final String getDefaultType() {
-        String defaultType = (String) AccessController.doPrivileged(
-                new java.security.PrivilegedAction() {
-                    public Object run() {
+        String defaultType = AccessController
+                .doPrivileged(new java.security.PrivilegedAction<String>() {
+                    public String run() {
                         return Security.getProperty(PROPERTYNAME);
                     }
-                }
-            );
+                });
         return (defaultType != null ? defaultType : DEFAULTPROPERTY);
     }
 }

Modified: harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/cert/CertStore.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/cert/CertStore.java?view=diff&rev=482905&r1=482904&r2=482905
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/cert/CertStore.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/cert/CertStore.java
Tue Dec  5 21:25:23 2006
@@ -202,13 +202,12 @@
      * @com.intel.drl.spec_ref
      */
     public static final String getDefaultType() {
-        String defaultType = (String) AccessController.doPrivileged(
-                new java.security.PrivilegedAction() {
-                    public Object run() {
+        String defaultType = AccessController
+                .doPrivileged(new java.security.PrivilegedAction<String>() {
+                    public String run() {
                         return Security.getProperty(PROPERTYNAME);
                     }
-                }
-            );
+                });
         return (defaultType == null ? DEFAULTPROPERTY : defaultType);
     }
 }



Mime
View raw message