diff options
author | liamfallon <liam.fallon@est.tech> | 2018-12-03 14:35:21 +0000 |
---|---|---|
committer | liamfallon <liam.fallon@est.tech> | 2018-12-03 14:41:52 +0000 |
commit | 9104eb39d56848952e68d660bdc3cc7500789501 (patch) | |
tree | 66ac25de7e95dfbc9ab9b3f0b1a41a57bb18d48f /tools/model-generator/src/main | |
parent | fb7c89ebe2e682170b09275a5e531d0a49d70ada (diff) |
Fix checkstyle/sonar issues
Remove unused imports
Add @FunctionalInterface annotation
Reduce the complexity of some methods
Change-Id: If519c31b113233361fbb935121fe6494263ac957
Issue-ID: POLICY-1074
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'tools/model-generator/src/main')
-rw-r--r-- | tools/model-generator/src/main/java/org/onap/policy/apex/tools/model/generator/model2event/Model2JsonEventSchema.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/model-generator/src/main/java/org/onap/policy/apex/tools/model/generator/model2event/Model2JsonEventSchema.java b/tools/model-generator/src/main/java/org/onap/policy/apex/tools/model/generator/model2event/Model2JsonEventSchema.java index 86a826bd1..9041a8067 100644 --- a/tools/model-generator/src/main/java/org/onap/policy/apex/tools/model/generator/model2event/Model2JsonEventSchema.java +++ b/tools/model-generator/src/main/java/org/onap/policy/apex/tools/model/generator/model2event/Model2JsonEventSchema.java @@ -150,13 +150,11 @@ public class Model2JsonEventSchema { case FLOAT: case INT: case LONG: - case STRING: { + case STRING: return true; - } - default: { + default: return false; - } } } |