commit | c2f7bba321df740d134da7da1a19d7d38b867799 | [log] [tgz] |
---|---|---|
author | Jim Hahn <jrh3@att.com> | Fri Mar 26 19:17:39 2021 +0000 |
committer | Gerrit Code Review <gerrit@onap.org> | Fri Mar 26 19:17:39 2021 +0000 |
tree | 060f1497020f65e08f4bdb48553bf0c188f9fded | |
parent | 75872f01f89d475384d3ac79700c22db3078e966 [diff] | |
parent | 99d54e1598f3f00573bf022d066a69f4b619c07b [diff] |
Merge "Fix sonar issues"
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 9771b61..6c37e45 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 @@ * * @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 655bd6a..e663228 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 @@ * {@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 4071803..a4b4227 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 @@ assertEquals(ApexApiResult.Result.SUCCESS, result.getResult()); assertNotEquals(0, apexModelImpl.hashCode()); - assertNotNull(apexModelImpl.clone()); + assertNotNull(apexModelImpl.getCopy()); assertNotNull(apexModelImpl.build()); } }