harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r482587 - /harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Signer.java
Date Tue, 05 Dec 2006 10:57:24 GMT
Author: smishura
Date: Tue Dec  5 02:57:24 2006
New Revision: 482587

URL: http://svn.apache.org/viewvc?view=rev&rev=482587
Log:
Fix warning + minor update

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

Modified: harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Signer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Signer.java?view=diff&rev=482587&r1=482586&r2=482587
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Signer.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Signer.java
Tue Dec  5 02:57:24 2006
@@ -91,8 +91,8 @@
         }
         final PublicKey pk = pair.getPublic();
         try {
-            AccessController.doPrivileged(new PrivilegedExceptionAction() {
-                public Object run() throws KeyManagementException {
+            AccessController.doPrivileged(new PrivilegedExceptionAction<Void>() {
+                public Void run() throws KeyManagementException {
                     setPublicKey(pk);
                     return null;
                 }
@@ -109,7 +109,7 @@
     public String toString() {
         String s = "[Signer]" + getName(); //$NON-NLS-1$
         if (getScope() != null) {
-            s = s + "[" + getScope().toString() + "]"; //$NON-NLS-1$ //$NON-NLS-2$
+            s = s + '[' + getScope().toString() + ']';
         }
         return s;
     }



Mime
View raw message