You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2010/11/12 20:00:39 UTC

svn commit: r1034515 - /directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/crypto/checksum/ChecksumType.java

Author: kayyagari
Date: Fri Nov 12 19:00:38 2010
New Revision: 1034515

URL: http://svn.apache.org/viewvc?rev=1034515&view=rev
Log:
o renamed 'ordinal' to value' (updated in method name too)'

Modified:
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/crypto/checksum/ChecksumType.java

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/crypto/checksum/ChecksumType.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/crypto/checksum/ChecksumType.java?rev=1034515&r1=1034514&r2=1034515&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/crypto/checksum/ChecksumType.java (original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/crypto/checksum/ChecksumType.java Fri Nov 12 19:00:38 2010
@@ -121,7 +121,7 @@ public enum ChecksumType implements Comp
     /**
      * The value/code for the checksum type.
      */
-    private final int ordinal;
+    private final int value;
 
 
     /**
@@ -129,17 +129,17 @@ public enum ChecksumType implements Comp
      */
     private ChecksumType( int ordinal )
     {
-        this.ordinal = ordinal;
+        this.value = ordinal;
     }
 
 
     /**
-     * Returns the checksum type when specified by its ordinal.
+     * Returns the checksum type when specified by its value.
      *
      * @param type
      * @return The checksum type.
      */
-    public static ChecksumType getTypeByOrdinal( int type )
+    public static ChecksumType getTypeByValue( int type )
     {
         switch ( type )
         {
@@ -169,10 +169,10 @@ public enum ChecksumType implements Comp
     /**
      * Returns the number associated with this checksum type.
      *
-     * @return The checksum type ordinal.
+     * @return The checksum type value.
      */
-    public int getOrdinal()
+    public int getValue()
     {
-        return ordinal;
+        return value;
     }
 }