Kapt, Minor: Fix empty option parsing

This commit is contained in:
Yan Zhulanow
2017-12-16 02:10:34 +09:00
parent 7c5897c1ab
commit d4be55df0e
@@ -276,8 +276,12 @@ public class KaptJVMCompilerMojo extends K2JVMCompileMojo {
} }
for (String option : rawOptions) { for (String option : rawOptions) {
if (option.isEmpty()) {
continue;
}
int equalsIndex = option.indexOf("="); int equalsIndex = option.indexOf("=");
if (equalsIndex < 0 && equalsIndex < (option.length() - 1)) { if (equalsIndex < 0) {
map.put(option, ""); map.put(option, "");
} }
else { else {