directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r367403 - /directory/trunks/asn1/src/main/java/org/apache/asn1/util/BooleanDecoder.java
Date Mon, 09 Jan 2006 21:34:57 GMT
Author: elecharny
Date: Mon Jan  9 13:34:53 2006
New Revision: 367403

URL: http://svn.apache.org/viewcvs?rev=367403&view=rev
Log:
Fixed a bug which generates a warning each time a Boolean is False.

Modified:
    directory/trunks/asn1/src/main/java/org/apache/asn1/util/BooleanDecoder.java

Modified: directory/trunks/asn1/src/main/java/org/apache/asn1/util/BooleanDecoder.java
URL: http://svn.apache.org/viewcvs/directory/trunks/asn1/src/main/java/org/apache/asn1/util/BooleanDecoder.java?rev=367403&r1=367402&r2=367403&view=diff
==============================================================================
--- directory/trunks/asn1/src/main/java/org/apache/asn1/util/BooleanDecoder.java (original)
+++ directory/trunks/asn1/src/main/java/org/apache/asn1/util/BooleanDecoder.java Mon Jan 
9 13:34:53 2006
@@ -53,7 +53,7 @@
                 "The value is not 1 byte long. This is not allowed for a boolean" );
         }
 
-        if ( ( bytes[0] != 0 ) && ( bytes[0] != 255 ) )
+        if ( ( bytes[0] != 0 ) && ( bytes[0] != (byte)0xFF ) )
         {
             log.warn( "A boolean must be encoded with a 0x00 or a 0xFF value" );
         }



Mime
View raw message