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
This commit is contained in:
rfeng 2008-10-27 20:57:10 +00:00
parent d3762321bf
commit 1ed034c531

View file

@ -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()) {