harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r588001 - in /harmony/enhanced/classlib/trunk/modules/security/src: main/java/common/java/security/ main/java/common/org/apache/harmony/security/provider/cert/ test/api/java.injected/java/security/ test/api/java/org/apache/harmony/security/...
Date Wed, 24 Oct 2007 20:16:32 GMT
Author: hindessm
Date: Wed Oct 24 13:16:31 2007
New Revision: 588001

URL: http://svn.apache.org/viewvc?rev=588001&view=rev
Log:
Spelling fixes.

Modified:
    harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Provider.java
    harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/provider/cert/X509CRLImpl.java
    harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/ProviderTest.java
    harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/MessageDigestSpiTest.java
    harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ProviderTest.java
    harmony/enhanced/classlib/trunk/modules/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/SHA1_MessageDigestTest.java
    harmony/enhanced/classlib/trunk/modules/security/src/test/resources/java/security/Provider.prop.dat

Modified: harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Provider.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Provider.java?rev=588001&r1=588000&r2=588001&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Provider.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Provider.java
Wed Oct 24 13:16:31 2007
@@ -527,7 +527,7 @@
         String algorithm = null;
         String attribute = null;
         int i;
-        if (k.startsWith("Alg.Alias.")) { // Alg.Alias.<crypto_service>.<aliasName>=<stanbdardName>
//$NON-NLS-1$
+        if (k.startsWith("Alg.Alias.")) { // Alg.Alias.<crypto_service>.<aliasName>=<standardName>
//$NON-NLS-1$
             String aliasName;
             String service_alias = k.substring(10);
             i = service_alias.indexOf("."); //$NON-NLS-1$
@@ -607,7 +607,7 @@
                 continue;
             }
             int i;
-            if (key.startsWith("Alg.Alias.")) { // Alg.Alias.<crypto_service>.<aliasName>=<stanbdardName>
//$NON-NLS-1$
+            if (key.startsWith("Alg.Alias.")) { // Alg.Alias.<crypto_service>.<aliasName>=<standardName>
//$NON-NLS-1$
                 String aliasName;
                 String service_alias = key.substring(10);
                 i = service_alias.indexOf("."); //$NON-NLS-1$

Modified: harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/provider/cert/X509CRLImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/provider/cert/X509CRLImpl.java?rev=588001&r1=588000&r2=588001&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/provider/cert/X509CRLImpl.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/provider/cert/X509CRLImpl.java
Wed Oct 24 13:16:31 2007
@@ -201,7 +201,7 @@
      * from the TBSCertList structure and converts them to the
      * X509CRLEntryImpl objects
      */
-    private void retirieveEntries() {
+    private void retrieveEntries() {
         entriesRetrieved = true;
         List rcerts = tbsCertList.getRevokedCertificates();
         if (rcerts == null) {
@@ -243,7 +243,7 @@
             throw new NullPointerException();
         }
         if (!entriesRetrieved) {
-            retirieveEntries();
+            retrieveEntries();
         }
         if (entries == null) {
             return null;
@@ -295,7 +295,7 @@
      */
     public X509CRLEntry getRevokedCertificate(BigInteger serialNumber) {
         if (!entriesRetrieved) {
-            retirieveEntries();
+            retrieveEntries();
         }
         if (entries == null) {
             return null;
@@ -315,7 +315,7 @@
      */
     public Set<? extends X509CRLEntry> getRevokedCertificates() {
         if (!entriesRetrieved) {
-            retirieveEntries();
+            retrieveEntries();
         }
         if (entries == null) {
             return null;

Modified: harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/ProviderTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/ProviderTest.java?rev=588001&r1=588000&r2=588001&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/ProviderTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/ProviderTest.java
Wed Oct 24 13:16:31 2007
@@ -64,7 +64,7 @@
         if (!"value 1".equals(p.getProperty("Property 1").trim()) ||
                 !"className".equals(p.getProperty("serviceName.algName").trim()) ||    
                 !"attrValue".equals(p.getProperty("serviceName.algName attrName").trim())
||
-                !"stanbdardName".equals(p.getProperty("Alg.Alias.engineClassName.aliasName").trim())
||
+                !"standardName".equals(p.getProperty("Alg.Alias.engineClassName.aliasName").trim())
||
                 !String.valueOf(p.getName()).equals(p.getProperty("Provider.id name").trim())
||
                 !String.valueOf(p.getVersion()).equals(p.getProperty("Provider.id version").trim())
||
                 !String.valueOf(p.getInfo()).equals(p.getProperty("Provider.id info").trim())
||

Modified: harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/MessageDigestSpiTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/MessageDigestSpiTest.java?rev=588001&r1=588000&r2=588001&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/MessageDigestSpiTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/MessageDigestSpiTest.java
Wed Oct 24 13:16:31 2007
@@ -38,34 +38,34 @@
      */
     public void test_engineDigestLB$LILI() throws Exception {
 
-        final int DIGEST_LENGHT = 2;
+        final int DIGEST_LENGTH = 2;
 
         MyMessageDigest md = new MyMessageDigest() {
 
             public int engineGetDigestLength() {
-                return DIGEST_LENGHT;
+                return DIGEST_LENGTH;
             }
 
             public byte[] engineDigest() {
-                return new byte[DIGEST_LENGHT]; // return non-null value
+                return new byte[DIGEST_LENGTH]; // return non-null value
             }
         };
 
         byte[] b = new byte[5];
         try {
             // test: null output buffer
-            md.engineDigest(null, 1, DIGEST_LENGHT);
+            md.engineDigest(null, 1, DIGEST_LENGTH);
             fail("No expected NullPointerException");
         } catch (NullPointerException e) {
         }
         try {
             //test: len param < digest length
-            md.engineDigest(b, 1, DIGEST_LENGHT - 1);
+            md.engineDigest(b, 1, DIGEST_LENGTH - 1);
             fail("No expected DigestException");
         } catch (DigestException e) {
         }
 
-        assertEquals("incorrect result", DIGEST_LENGHT, md
+        assertEquals("incorrect result", DIGEST_LENGTH, md
                 .engineDigest(b, 1, 3));
         
         // Regression for HARMONY-3045

Modified: harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ProviderTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ProviderTest.java?rev=588001&r1=588000&r2=588001&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ProviderTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ProviderTest.java
Wed Oct 24 13:16:31 2007
@@ -112,11 +112,11 @@
         hm.put("MessageDigest.SHA-1", "aaa.bbb.ccc.ddd");
         hm.put("Property 1", "value 1");
         hm.put("serviceName.algName attrName", "attrValue");
-        hm.put("Alg.Alias.engineClassName.aliasName", "stanbdardName");
+        hm.put("Alg.Alias.engineClassName.aliasName", "standardName");
         p.putAll(hm);
         if (!"value 1".equals(p.getProperty("Property 1").trim()) ||
                 !"attrValue".equals(p.getProperty("serviceName.algName attrName").trim())
||
-                !"stanbdardName".equals(p.getProperty("Alg.Alias.engineClassName.aliasName").trim())
||
+                !"standardName".equals(p.getProperty("Alg.Alias.engineClassName.aliasName").trim())
||
                 !"aaa.bbb.ccc.ddd".equals(p.getProperty("MessageDigest.SHA-1").trim()) )
{
             fail("Incorrect property value");
         }

Modified: harmony/enhanced/classlib/trunk/modules/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/SHA1_MessageDigestTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/SHA1_MessageDigestTest.java?rev=588001&r1=588000&r2=588001&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/SHA1_MessageDigestTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/SHA1_MessageDigestTest.java
Wed Oct 24 13:16:31 2007
@@ -497,7 +497,7 @@
      * test against the "void update(byte[],int,int)" method;
      * it checks out that two sequential digest, 
      * second is byte array update to first,
-     * are different, provided lenght of the byte array > 0.
+     * are different, provided length of the byte array > 0.
      */
     public final void testUpdatebyteArrayintint02() {
 

Modified: harmony/enhanced/classlib/trunk/modules/security/src/test/resources/java/security/Provider.prop.dat
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/test/resources/java/security/Provider.prop.dat?rev=588001&r1=588000&r2=588001&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/test/resources/java/security/Provider.prop.dat
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/test/resources/java/security/Provider.prop.dat
Wed Oct 24 13:16:31 2007
@@ -1,7 +1,7 @@
 Property\ 1 = value 1
 serviceName.algName=className 
 serviceName.algName\ attrName= attrValue
-Alg.Alias.engineClassName.aliasName=stanbdardName
+Alg.Alias.engineClassName.aliasName=standardName
 Provider.id\ name = NEW NAME
 Provider.id\ version = 333
 Provider.id\ info=newInfo



Mime
View raw message