Fixes bugs in teavm-maven-plugin

This commit is contained in:
konsoletyper 2014-05-05 15:51:58 +04:00
parent 5de1b3877d
commit 1280493717

View File

@ -197,8 +197,11 @@ public class BuildJavascriptMojo extends AbstractMojo {
for (int i = 0; i < methodAlias.getTypes().length; ++i) { for (int i = 0; i < methodAlias.getTypes().length; ++i) {
String types = methodAlias.getTypes()[i]; String types = methodAlias.getTypes()[i];
if (types != null) { if (types != null) {
for (String type : types.split(" ")) { for (String type : types.split(" +")) {
entryPoint.withValue(i, type); type = type.trim();
if (!type.isEmpty()) {
entryPoint.withValue(i, type);
}
} }
} }
} }