directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r165493 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/TLV.java
Date Sun, 01 May 2005 12:24:59 GMT
Author: elecharny
Date: Sun May  1 05:24:59 2005
New Revision: 165493

URL: http://svn.apache.org/viewcvs?rev=165493&view=rev
Log:
The getSize function incorrectly added the expected length (which is used for multi-bytes
length) to the returned Length size.

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/TLV.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/TLV.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/TLV.java?rev=165493&r1=165492&r2=165493&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/TLV.java (original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/TLV.java Sun May
 1 05:24:59 2005
@@ -144,6 +144,6 @@
 	 * @return Returns the size of the TLV.
 	 */
 	public int getSize() {
-		return tag.getSize() + length.getSize() + length.getExpectedLength();
+		return tag.getSize() + length.getSize();
 	}
 }



Mime
View raw message