ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlboud...@apache.org
Subject svn commit: r1531693 - /ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/report/XMLEasyAntReportWriter.java
Date Sun, 13 Oct 2013 14:18:56 GMT
Author: jlboudart
Date: Sun Oct 13 14:18:55 2013
New Revision: 1531693

URL: http://svn.apache.org/r1531693
Log:
Useless String.valueOf

Modified:
    ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/report/XMLEasyAntReportWriter.java

Modified: ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/report/XMLEasyAntReportWriter.java
URL: http://svn.apache.org/viewvc/ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/report/XMLEasyAntReportWriter.java?rev=1531693&r1=1531692&r2=1531693&view=diff
==============================================================================
--- ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/report/XMLEasyAntReportWriter.java
(original)
+++ ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/report/XMLEasyAntReportWriter.java
Sun Oct 13 14:18:55 2013
@@ -235,7 +235,7 @@ public class XMLEasyAntReportWriter {
 
             ArtifactOrigin origin = madr.getArtifactOrigin();
             if (origin != null) {
-                out.print(" origin-is-local=\"" + String.valueOf(origin.isLocal()) + "\"");
+                out.print(" origin-is-local=\"" + origin.isLocal() + "\"");
                 out.print(" origin-location=\"" + XMLHelper.escape(origin.getLocation())
+ "\"");
             }
             out.println("/>");
@@ -299,8 +299,8 @@ public class XMLEasyAntReportWriter {
             ArtifactOrigin origin = adr[i].getArtifactOrigin();
             if (origin != null) {
                 out.println(">");
-                out.println("\t\t\t\t\t\t<origin-location is-local=\"" + String.valueOf(origin.isLocal())
+ "\""
-                        + " location=\"" + XMLHelper.escape(origin.getLocation()) + "\"/>");
+                out.println("\t\t\t\t\t\t<origin-location is-local=\"" + origin.isLocal()
+ "\"" + " location=\""
+                        + XMLHelper.escape(origin.getLocation()) + "\"/>");
                 out.println("\t\t\t\t\t</artifact>");
             } else {
                 out.println("/>");



Mime
View raw message