harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r496627 - in /harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/provider: cert/DRLCertFactory.java crypto/CryptoProvider.java
Date Tue, 16 Jan 2007 09:04:40 GMT
Author: smishura
Date: Tue Jan 16 01:04:39 2007
New Revision: 496627

URL: http://svn.apache.org/viewvc?view=rev&rev=496627
Log:
Minor update: fix warnings

Modified:
    harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/provider/cert/DRLCertFactory.java
    harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/provider/crypto/CryptoProvider.java

Modified: harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/provider/cert/DRLCertFactory.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/provider/cert/DRLCertFactory.java?view=diff&rev=496627&r1=496626&r2=496627
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/provider/cert/DRLCertFactory.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/provider/cert/DRLCertFactory.java
Tue Jan 16 01:04:39 2007
@@ -47,8 +47,8 @@
         // security.151=Certificate Factory supports CRLs and Certificates in (PEM) ASN.1
DER encoded form, and Certification Paths in PkiPath and PKCS7 formats.
         super("DRLCertFactory", 1.0, Messages.getString("security.151")); //$NON-NLS-1$ //$NON-NLS-2$
                 
-        AccessController.doPrivileged(new java.security.PrivilegedAction() {
-            public Object run() {
+        AccessController.doPrivileged(new java.security.PrivilegedAction<Void>() {
+            public Void run() {
                 // register the service
                 put("CertificateFactory.X509", //$NON-NLS-1$
                     "org.apache.harmony.security.provider.cert.X509CertFactoryImpl"); //$NON-NLS-1$

Modified: harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/provider/crypto/CryptoProvider.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/provider/crypto/CryptoProvider.java?view=diff&rev=496627&r1=496626&r2=496627
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/provider/crypto/CryptoProvider.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/provider/crypto/CryptoProvider.java
Tue Jan 16 01:04:39 2007
@@ -33,6 +33,8 @@
 
 public final class CryptoProvider extends Provider {
 
+    private static final long serialVersionUID = 7991202868423459598L;
+
     /**
      * Creates a Provider and puts parameters
      */
@@ -53,9 +55,9 @@
         final String KEYF_NAME = 
                  "org.apache.harmony.security.provider.crypto.DSAKeyFactoryImpl"; //$NON-NLS-1$
 
-        AccessController.doPrivileged(new java.security.PrivilegedAction() {
+        AccessController.doPrivileged(new java.security.PrivilegedAction<Void>() {
 
-            public Object run() {
+            public Void run() {
 
                 put("MessageDigest.SHA-1", MD_NAME); //$NON-NLS-1$
                 put("MessageDigest.SHA-1 ImplementedIn", "Software"); //$NON-NLS-1$ //$NON-NLS-2$



Mime
View raw message