Browse Source

.isEmpty method only exists in Java 1.6, Ant supports still Java 1.5

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1551057 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 11 years ago
parent
commit
ce5e412964
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java View File

@@ -1330,7 +1330,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {

ParamType type;

if (typeName == null || typeName.isEmpty()) {
if (typeName == null || "".equals(typeName)) {
type = ParamType.STRING; // String is default
} else {
try {


Loading…
Cancel
Save