directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1034515 - /directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/crypto/checksum/ChecksumType.java
Date Fri, 12 Nov 2010 19:00:39 GMT
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;
     }
 }



Mime
View raw message