ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r1551057 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
Date Sun, 15 Dec 2013 21:07:15 GMT
Author: antoine
Date: Sun Dec 15 21:07:15 2013
New Revision: 1551057

URL: http://svn.apache.org/r1551057
Log:
.isEmpty method only exists in Java 1.6, Ant supports still Java 1.5

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java?rev=1551057&r1=1551056&r2=1551057&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java Sun Dec 15 21:07:15
2013
@@ -1330,7 +1330,7 @@ public class XSLTProcess extends Matchin
 
         ParamType type;
 
-        if (typeName == null || typeName.isEmpty()) {
+        if (typeName == null || "".equals(typeName)) {
             type = ParamType.STRING; // String is default
         } else {
             try {



Mime
View raw message