harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r381378 - /incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/InitManifest.java
Date Mon, 27 Feb 2006 16:52:55 GMT
Author: tellison
Date: Mon Feb 27 08:52:52 2006
New Revision: 381378

URL: http://svn.apache.org/viewcvs?rev=381378&view=rev
Log:
Don't save leading CRs in next chunk

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/InitManifest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/InitManifest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/InitManifest.java?rev=381378&r1=381377&r2=381378&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/InitManifest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/InitManifest.java
Mon Feb 27 08:52:52 2006
@@ -141,8 +141,11 @@
 				if (next != '\n') {
 					inbufPos--;
 					next = '\r';
-				} else
+				} else {
+					if (out.size() == 0)
+						continue;
 					out.write('\r');
+				}
 				lastCr = false;
 			} else if (next == '\r') {
 				lastCr = true;



Mime
View raw message