You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/05/01 14:24:59 UTC

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

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();
 	}
 }