directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1038687 - in /directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/flags: AbstractKerberosFlags.java KerberosFlag.java TicketFlag.java
Date Wed, 24 Nov 2010 16:50:12 GMT
Author: kayyagari
Date: Wed Nov 24 16:50:12 2010
New Revision: 1038687

URL: http://svn.apache.org/viewvc?rev=1038687&view=rev
Log:
o renamed getOrdinal() method to getValue() for consistency and clarity

Modified:
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/flags/AbstractKerberosFlags.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/flags/KerberosFlag.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/flags/TicketFlag.java

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/flags/AbstractKerberosFlags.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/flags/AbstractKerberosFlags.java?rev=1038687&r1=1038686&r2=1038687&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/flags/AbstractKerberosFlags.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/flags/AbstractKerberosFlags.java
Wed Nov 24 16:50:12 2010
@@ -104,8 +104,8 @@ public abstract class AbstractKerberosFl
      */
     public boolean isFlagSet( KerberosFlag flag )
     {
-        int ordinal = flag.getOrdinal();
-        int mask = 1 << ( MAX_SIZE - 1 - ordinal );
+        int value = flag.getValue();
+        int mask = 1 << ( MAX_SIZE - 1 - value );
         
         return ( value & mask ) != 0;
     }
@@ -129,7 +129,7 @@ public abstract class AbstractKerberosFl
      */
     public void setFlag( KerberosFlag flag )
     {
-        int pos = MAX_SIZE - 1 - flag.getOrdinal();
+        int pos = MAX_SIZE - 1 - flag.getValue();
         value |= 1 << pos;
     }
     
@@ -152,7 +152,7 @@ public abstract class AbstractKerberosFl
      */
     public void clearFlag( KerberosFlag flag )
     {
-        value &= ~( 1 << ( MAX_SIZE - 1 - flag.getOrdinal() ) );
+        value &= ~( 1 << ( MAX_SIZE - 1 - flag.getValue() ) );
     }
     
     

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/flags/KerberosFlag.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/flags/KerberosFlag.java?rev=1038687&r1=1038686&r2=1038687&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/flags/KerberosFlag.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/flags/KerberosFlag.java
Wed Nov 24 16:50:12 2010
@@ -33,5 +33,5 @@ public interface KerberosFlag
     /**
      * @return The ordinal value associated with this flag
      */
-    int getOrdinal();
+    int getValue();
 }

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/flags/TicketFlag.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/flags/TicketFlag.java?rev=1038687&r1=1038686&r2=1038687&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/flags/TicketFlag.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/flags/TicketFlag.java
Wed Nov 24 16:50:12 2010
@@ -132,9 +132,9 @@ public enum TicketFlag implements Kerber
     
     
     /**
-     * @return The ordinal value associated with this flag
+     * @return The value associated with this flag
      */
-    public int getOrdinal()
+    public int getValue()
     {
         return value;
     }



Mime
View raw message