directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r432294 - /directory/branches/apacheds/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/GetPrincipal.java
Date Thu, 17 Aug 2006 16:42:08 GMT
Author: elecharny
Date: Thu Aug 17 09:42:07 2006
New Revision: 432294

URL: http://svn.apache.org/viewvc?rev=432294&view=rev
Log:
Boolean.parseBoolean is available on JDK 1.5, so it has been replaced 
by getBoolean which does the work on JDK 1.4

Modified:
    directory/branches/apacheds/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/GetPrincipal.java

Modified: directory/branches/apacheds/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/GetPrincipal.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/GetPrincipal.java?rev=432294&r1=432293&r2=432294&view=diff
==============================================================================
--- directory/branches/apacheds/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/GetPrincipal.java
(original)
+++ directory/branches/apacheds/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/GetPrincipal.java
Thu Aug 17 09:42:07 2006
@@ -126,13 +126,13 @@
         if ( attrs.get( KerberosAttribute.ACCOUNT_DISABLED ) != null )
         {
             String val = ( String ) attrs.get( KerberosAttribute.ACCOUNT_DISABLED ).get();

-            modifier.setDisabled( Boolean.parseBoolean( val.toLowerCase() ) );
+            modifier.setDisabled( Boolean.getBoolean( val.toLowerCase() ) );
         }
 
         if ( attrs.get( KerberosAttribute.ACCOUNT_LOCKEDOUT ) != null )
         {
             String val = ( String ) attrs.get( KerberosAttribute.ACCOUNT_LOCKEDOUT ).get();

-            modifier.setLockedOut( Boolean.parseBoolean( val.toLowerCase() ) );
+            modifier.setLockedOut( Boolean.getBoolean( val.toLowerCase() ) );
         }
         
         if ( attrs.get( KerberosAttribute.ACCOUNT_EXPIRATION_TIME ) != null )



Mime
View raw message