From 12804937175c5e9a35319a7b9542f9a641f19790 Mon Sep 17 00:00:00 2001 From: konsoletyper Date: Mon, 5 May 2014 15:51:58 +0400 Subject: [PATCH] Fixes bugs in teavm-maven-plugin --- .../src/main/java/org/teavm/maven/BuildJavascriptMojo.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/teavm-maven-plugin/src/main/java/org/teavm/maven/BuildJavascriptMojo.java b/teavm-maven-plugin/src/main/java/org/teavm/maven/BuildJavascriptMojo.java index c9a2267a9..b414e0cfb 100644 --- a/teavm-maven-plugin/src/main/java/org/teavm/maven/BuildJavascriptMojo.java +++ b/teavm-maven-plugin/src/main/java/org/teavm/maven/BuildJavascriptMojo.java @@ -197,8 +197,11 @@ public class BuildJavascriptMojo extends AbstractMojo { for (int i = 0; i < methodAlias.getTypes().length; ++i) { String types = methodAlias.getTypes()[i]; if (types != null) { - for (String type : types.split(" ")) { - entryPoint.withValue(i, type); + for (String type : types.split(" +")) { + type = type.trim(); + if (!type.isEmpty()) { + entryPoint.withValue(i, type); + } } } }