summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorJorge Hernandez <jorge.hernandez-herrero@att.com>2021-03-25 13:29:02 +0000
committerGerrit Code Review <gerrit@onap.org>2021-03-25 13:29:02 +0000
commit75872f01f89d475384d3ac79700c22db3078e966 (patch)
tree28c7b03cdbbbfaeb73d73e0eb44940e2e1a08d51 /model
parent4d967d61cfb83802b5426d5fd818bcecf144d6e1 (diff)
parent003fbb232dd3752bfdeeefdd0ba337f4dc92e0ea (diff)
Merge "Fix sonar issues"
Diffstat (limited to 'model')
-rw-r--r--model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/ApexModel.java2
-rw-r--r--model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/impl/ApexModelImpl.java2
-rw-r--r--model/model-api/src/test/java/org/onap/policy/apex/model/modelapi/ApexModelApiTest.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/ApexModel.java b/model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/ApexModel.java
index 9771b6186..6c37e453c 100644
--- a/model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/ApexModel.java
+++ b/model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/ApexModel.java
@@ -34,7 +34,7 @@ public interface ApexModel extends ApexEditorApi {
*
* @return the result of the operation
*/
- ApexModel clone();
+ ApexModel getCopy();
/**
* Load an Apex model from a string.
diff --git a/model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/impl/ApexModelImpl.java b/model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/impl/ApexModelImpl.java
index 655bd6ae5..e66322801 100644
--- a/model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/impl/ApexModelImpl.java
+++ b/model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/impl/ApexModelImpl.java
@@ -87,7 +87,7 @@ public final class ApexModelImpl implements ApexModel {
* {@inheritDoc}.
*/
@Override
- public ApexModel clone() {
+ public ApexModel getCopy() {
ApexModelImpl ret = new ApexModelImpl();
// @formatter:off
ret.policyModel = new AxPolicyModel(policyModel);
diff --git a/model/model-api/src/test/java/org/onap/policy/apex/model/modelapi/ApexModelApiTest.java b/model/model-api/src/test/java/org/onap/policy/apex/model/modelapi/ApexModelApiTest.java
index 4071803a0..a4b42276a 100644
--- a/model/model-api/src/test/java/org/onap/policy/apex/model/modelapi/ApexModelApiTest.java
+++ b/model/model-api/src/test/java/org/onap/policy/apex/model/modelapi/ApexModelApiTest.java
@@ -239,7 +239,7 @@ public class ApexModelApiTest {
assertEquals(ApexApiResult.Result.SUCCESS, result.getResult());
assertNotEquals(0, apexModelImpl.hashCode());
- assertNotNull(apexModelImpl.clone());
+ assertNotNull(apexModelImpl.getCopy());
assertNotNull(apexModelImpl.build());
}
}