diff options
author | vasraz <vasyl.razinkov@est.tech> | 2021-03-22 15:33:06 +0000 |
---|---|---|
committer | Christophe Closset <christophe.closset@intl.att.com> | 2021-03-24 06:59:47 +0000 |
commit | d378c37fbd1ecec7b43394926f1ca32a695e07de (patch) | |
tree | 5c8a085f8732f980d871d966ac49361644efa698 /openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java | |
parent | a6ae7294ecd336d7e88f915710b08e2658eaee00 (diff) |
Reformat openecomp-be
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-3449
Change-Id: I13e02322f8e00820cc5a1d85752caaeda9bf10d1
Diffstat (limited to 'openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java')
-rw-r--r-- | openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java index ff3e19bd1b..313ac2c158 100644 --- a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java +++ b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java @@ -16,7 +16,6 @@ * SPDX-License-Identifier: Apache-2.0 * ============LICENSE_END========================================================= */ - package org.openecomp.core.converter.pnfd.model; import java.util.List; @@ -38,7 +37,6 @@ import org.openecomp.sdc.logging.api.LoggerFactory; public class Transformation { private static final Logger LOGGER = LoggerFactory.getLogger(Transformation.class); - private String name; private String description; private TransformationBlock block; @@ -69,12 +67,10 @@ public class Transformation { final Transformation that = (Transformation) o; //if there is no query, compares by block and name. if (conversionQuery == null && that.conversionQuery == null) { - return block == that.block && - Objects.equals(name, that.name); + return block == that.block && Objects.equals(name, that.name); } //transformations with the same block and query will override themselves. - return block == that.block && - Objects.equals(conversionQuery, that.conversionQuery); + return block == that.block && Objects.equals(conversionQuery, that.conversionQuery); } @Override @@ -86,10 +82,8 @@ public class Transformation { if (CollectionUtils.isEmpty(propertySet)) { return Optional.empty(); } - final Optional<TransformationProperty> transformationProperty = propertySet.stream() - .filter(transformationProperty1 -> transformationProperty1.getType() == type) - .findFirst(); + .filter(transformationProperty1 -> transformationProperty1.getType() == type).findFirst(); if (transformationProperty.isPresent()) { try { T value = clazz.cast(transformationProperty.get().getValue()); @@ -99,7 +93,6 @@ public class Transformation { return Optional.empty(); } } - return Optional.empty(); } } |