Fixing sonar qube issues 11/27411/2
authorshrikantawachar <shrikant.awachar@amdocs.com>
Thu, 4 Jan 2018 14:01:29 +0000 (19:31 +0530)
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>
Thu, 4 Jan 2018 15:26:53 +0000 (15:26 +0000)
Fixed major issues and updated license header in EchoMapMapping.java.

Change-Id: I9d50522466c2e4ea9e723488deb3a9da4cc98b2c
Issue-ID: SDC-343
Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
openecomp-be/api/openecomp-sdc-rest-webapp/openecomp-sdc-common-rest/src/main/java/org/openecomp/sdcrests/mapping/EchoMapMapping.java

index 81c2f37..0d394eb 100644 (file)
@@ -1,14 +1,30 @@
+/*
+ * 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.mapping;
 
-import java.util.HashMap;
+import java.util.Map;
 
-/**
+/*
  * Created by ayalaben on 9/12/2017
  */
-public class EchoMapMapping extends  MappingBase<HashMap<String,String>,HashMap<String,String>> {
+public class EchoMapMapping extends MappingBase<Map<String, String>, Map<String, String>> {
 
   @Override
-public void doMapping(HashMap<String,String> source, HashMap<String, String> target) {
+  public void doMapping(Map<String, String> source, Map<String, String> target) {
     target.putAll(source);
-    }
+  }
 }