Polish ternary expressions
This commit is contained in:
@@ -302,7 +302,7 @@ public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor
|
||||
|| isDeprecated(source);
|
||||
this.metadataCollector.add(ItemMetadata.newProperty(prefix, name,
|
||||
dataType, sourceType, null, description, defaultValue,
|
||||
(deprecated ? getItemDeprecation(getter) : null)));
|
||||
deprecated ? getItemDeprecation(getter) : null));
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -344,7 +344,7 @@ public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor
|
||||
boolean deprecated = isDeprecated(field) || isDeprecated(source);
|
||||
this.metadataCollector.add(ItemMetadata.newProperty(prefix, name,
|
||||
dataType, sourceType, null, description, defaultValue,
|
||||
(deprecated ? new ItemDeprecation() : null)));
|
||||
deprecated ? new ItemDeprecation() : null));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ public class JsonMarshaller {
|
||||
.setReplacement(deprecationJsonObject.optString("replacement", null));
|
||||
return deprecation;
|
||||
}
|
||||
return (object.optBoolean("deprecated") ? new ItemDeprecation() : null);
|
||||
return object.optBoolean("deprecated") ? new ItemDeprecation() : null;
|
||||
}
|
||||
|
||||
private ItemHint toItemHint(JSONObject object) throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user