directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r191231 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/TLV.java
Date Sat, 18 Jun 2005 00:26:48 GMT
Author: elecharny
Date: Fri Jun 17 17:26:47 2005
New Revision: 191231

URL: http://svn.apache.org/viewcvs?rev=191231&view=rev
Log:
Changed the getSize method to make it returns the real TLV 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=191231&r1=191230&r2=191231&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 Fri Jun
17 17:26:47 2005
@@ -133,6 +133,6 @@
 	 * @return Returns the size of the TLV.
 	 */
 	public int getSize() {
-		return tag.getSize() + length.getSize();
+		return tag.getSize() + length.getSize() + length.getLength();
 	}
 }



Mime
View raw message