summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshrikantawachar <shrikant.awachar@amdocs.com>2018-01-04 19:31:29 +0530
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-01-04 15:26:53 +0000
commit7a7614805c3155ba818645c803e386b07b3d7c0e (patch)
tree657b4d2ca475ea88821b076cff8a7c44f97a6247
parentc2d4d60d975182e2c53334562708e3f58384fe07 (diff)
Fixing sonar qube issues
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>
-rw-r--r--openecomp-be/api/openecomp-sdc-rest-webapp/openecomp-sdc-common-rest/src/main/java/org/openecomp/sdcrests/mapping/EchoMapMapping.java26
1 files changed, 21 insertions, 5 deletions
diff --git a/openecomp-be/api/openecomp-sdc-rest-webapp/openecomp-sdc-common-rest/src/main/java/org/openecomp/sdcrests/mapping/EchoMapMapping.java b/openecomp-be/api/openecomp-sdc-rest-webapp/openecomp-sdc-common-rest/src/main/java/org/openecomp/sdcrests/mapping/EchoMapMapping.java
index 81c2f37a66..0d394eb9aa 100644
--- a/openecomp-be/api/openecomp-sdc-rest-webapp/openecomp-sdc-common-rest/src/main/java/org/openecomp/sdcrests/mapping/EchoMapMapping.java
+++ b/openecomp-be/api/openecomp-sdc-rest-webapp/openecomp-sdc-common-rest/src/main/java/org/openecomp/sdcrests/mapping/EchoMapMapping.java
@@ -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);
- }
+ }
}