ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r991709 - /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/m2/PomReader.java
Date Wed, 01 Sep 2010 21:26:40 GMT
Author: maartenc
Date: Wed Sep  1 21:26:39 2010
New Revision: 991709

URL: http://svn.apache.org/viewvc?rev=991709&view=rev
Log:
No need to add the <!DOCTYPE... declaration if the InputStream is empty.

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/m2/PomReader.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/m2/PomReader.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/m2/PomReader.java?rev=991709&r1=991708&r2=991709&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/m2/PomReader.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/m2/PomReader.java Wed Sep  1
21:26:39 2010
@@ -546,6 +546,8 @@ public class PomReader {
                     prefix = (xmlDecl + "\n" + DOCTYPE).getBytes();
                     bytesToSkip = xmlDecl.getBytes().length;
                 }
+            } else {
+                prefix = new byte[0];
             }
             
             this.in.reset();



Mime
View raw message