sonar issue fix - remove dead code 55/27055/2
authorshrek2000 <orenkle@amdocs.com>
Wed, 27 Dec 2017 14:09:34 +0000 (16:09 +0200)
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>
Wed, 27 Dec 2017 14:53:56 +0000 (14:53 +0000)
remove dead code.
Issue-ID: SDC-804

Change-Id: I1bae8d3d338730dfad72b155eacebc8e1f5c838f
Signed-off-by: shrek2000 <orenkle@amdocs.com>
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/mapping/MapComputeDetailsDtoToComputeEntity.java

index 7db9a0a..93db7e3 100644 (file)
@@ -1,3 +1,18 @@
+/*
+ * Copyright © 2016-2017 European Support Limited
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.openecomp.sdcrests.vsp.rest.mapping;
 
 import org.openecomp.core.utilities.json.JsonUtil;
@@ -7,11 +22,12 @@ import org.openecomp.sdcrests.vendorsoftwareproducts.types.ComputeDescription;
 import org.openecomp.sdcrests.vendorsoftwareproducts.types.ComputeDetailsDto;
 
 public class MapComputeDetailsDtoToComputeEntity extends MappingBase<ComputeDetailsDto,
-    ComputeEntity> {
+        ComputeEntity> {
+
   @Override
   public void doMapping(ComputeDetailsDto source, ComputeEntity target) {
     ComputeDescription computeDesc = new ComputeDescription(source.getName(), source
-        .getDescription());
-    target.setCompositionData(computeDesc == null ? null : JsonUtil.object2Json(computeDesc));
+            .getDescription());
+    target.setCompositionData(JsonUtil.object2Json(computeDesc));
   }
 }