directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1150893 - /directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/types/EncryptionType.java
Date Mon, 25 Jul 2011 20:32:10 GMT
Author: seelmann
Date: Mon Jul 25 20:32:10 2011
New Revision: 1150893

URL: http://svn.apache.org/viewvc?rev=1150893&view=rev
Log:
Fixed naming.

Modified:
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/types/EncryptionType.java

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/types/EncryptionType.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/types/EncryptionType.java?rev=1150893&r1=1150892&r2=1150893&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/types/EncryptionType.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/types/EncryptionType.java
Mon Jul 25 20:32:10 2011
@@ -170,7 +170,7 @@ public enum EncryptionType
     private static Map<String, EncryptionType> encryptionTypesByName = new HashMap<String,
EncryptionType>();
 
     /** A map containing all the values */
-    private static Map<Integer, EncryptionType> encryptionTypesByOrdinal = new HashMap<Integer,
EncryptionType>();
+    private static Map<Integer, EncryptionType> encryptionTypesByValue = new HashMap<Integer,
EncryptionType>();
 
     /** Initialization of the previous map */
     static
@@ -178,7 +178,7 @@ public enum EncryptionType
         for ( EncryptionType type : EncryptionType.values() )
         {
             encryptionTypesByName.put( type.getName().toLowerCase(), type );
-            encryptionTypesByOrdinal.put( type.getValue(), type );
+            encryptionTypesByValue.put( type.getValue(), type );
         }
     }
 
@@ -211,9 +211,9 @@ public enum EncryptionType
      */
     public static EncryptionType getTypeByValue( int type )
     {
-        if ( encryptionTypesByOrdinal.containsKey( type ) )
+        if ( encryptionTypesByValue.containsKey( type ) )
         {
-            return encryptionTypesByOrdinal.get( type );
+            return encryptionTypesByValue.get( type );
         }
         else
         {



Mime
View raw message