diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-10-27 20:57:10 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-10-27 20:57:10 +0000 |
commit | 1ed034c531afd0914cf13fa5e65baae7f84a50c7 (patch) | |
tree | 5bd4460a90964e024eb086bb6500aafa5ac32de5 /branches/sca-equinox/tools/maven/maven-eclipse-compiler | |
parent | d3762321bf51f7b05eed5bddaf51413da69ed937 (diff) |
Remove the dependency on JDK 1.6 API String.isEmpty()
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@708313 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-equinox/tools/maven/maven-eclipse-compiler')
-rw-r--r-- | branches/sca-equinox/tools/maven/maven-eclipse-compiler/src/main/java/org/apache/tuscany/sca/tools/maven/compiler/JavaCompiler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/branches/sca-equinox/tools/maven/maven-eclipse-compiler/src/main/java/org/apache/tuscany/sca/tools/maven/compiler/JavaCompiler.java b/branches/sca-equinox/tools/maven/maven-eclipse-compiler/src/main/java/org/apache/tuscany/sca/tools/maven/compiler/JavaCompiler.java index 3b6912b1d6..b777a09cab 100644 --- a/branches/sca-equinox/tools/maven/maven-eclipse-compiler/src/main/java/org/apache/tuscany/sca/tools/maven/compiler/JavaCompiler.java +++ b/branches/sca-equinox/tools/maven/maven-eclipse-compiler/src/main/java/org/apache/tuscany/sca/tools/maven/compiler/JavaCompiler.java @@ -98,7 +98,7 @@ public class JavaCompiler extends AbstractCompiler { if (configuration.isDebug()) { settings.put(OPTION_LocalVariableAttribute, GENERATE); } - if (configuration.getSourceEncoding() != null && !configuration.getSourceEncoding().isEmpty()) { + if (configuration.getSourceEncoding() != null && !(configuration.getSourceEncoding().length() == 0)) { settings.put(OPTION_Encoding, configuration.getSourceEncoding()); } if (!configuration.isShowWarnings()) { |