mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-84800 strange and unhelpful "value must not be empty" in the pom.xml
This commit is contained in:
+5
-3
@@ -191,16 +191,18 @@ public class MavenPluginConfigurationDomExtender extends DomExtender<MavenDomCon
|
||||
}
|
||||
|
||||
private static void addRequiredAnnotation(DomExtension e, final ParameterData data) {
|
||||
if (Boolean.parseBoolean(data.parameter.getRequired().getStringValue())) {
|
||||
if (Boolean.parseBoolean(data.parameter.getRequired().getStringValue())
|
||||
&& StringUtil.isEmptyOrSpaces(data.defaultValue)
|
||||
&& StringUtil.isEmptyOrSpaces(data.expression)) {
|
||||
e.addCustomAnnotation(new Required(){
|
||||
@Override
|
||||
public boolean value() {
|
||||
return StringUtil.isEmptyOrSpaces(data.defaultValue) && StringUtil.isEmptyOrSpaces(data.expression);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean nonEmpty() {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user