From: anushadasari Date: Wed, 7 Aug 2019 11:26:49 +0000 (+0530) Subject: At most one statement is allowed per line X-Git-Tag: 5.0.1~68 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=6f674e900985ef640c79dbb31034dc85ca447d93;p=vid.git At most one statement is allowed per line At most one statement is allowed per line, but 2 statements were found on this line. For better readability, do not put more than one statement on a single line. Issue-ID: VID-562 Change-Id: Ibdae3413af96d49ce7a39e53d3af611e237cc16b Signed-off-by: anushadasari --- diff --git a/vid-app-common/src/main/java/org/onap/vid/asdc/parser/ToscaParserImpl2.java b/vid-app-common/src/main/java/org/onap/vid/asdc/parser/ToscaParserImpl2.java index 735ba437c..231ed4ad1 100644 --- a/vid-app-common/src/main/java/org/onap/vid/asdc/parser/ToscaParserImpl2.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/parser/ToscaParserImpl2.java @@ -511,7 +511,9 @@ public class ToscaParserImpl2 { final Object values = property.getValue(); final String vfModuleLabel = group.getProperties().getVfModuleLabel(); if ( values instanceof List ) { - if ( listContainsAsString((List) values, vfModuleLabel) ) return true; + if ( listContainsAsString((List) values, vfModuleLabel) ) { + return true; + } } else { return getPropertyValueAsString(property).equals(vfModuleLabel); }