Code Review
/
policy
/
engine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Unit/SONAR/Checkstyle in ONAP-REST
[policy/engine.git]
/
POLICY-SDK-APP
/
src
/
main
/
java
/
org
/
onap
/
policy
/
controller
/
CreateDcaeMicroServiceController.java
diff --git
a/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/CreateDcaeMicroServiceController.java
b/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/CreateDcaeMicroServiceController.java
index
1cc41f9
..
2e7654e
100644
(file)
--- a/
POLICY-SDK-APP/src/main/java/org/onap/policy/controller/CreateDcaeMicroServiceController.java
+++ b/
POLICY-SDK-APP/src/main/java/org/onap/policy/controller/CreateDcaeMicroServiceController.java
@@
-903,8
+903,8
@@
public class CreateDcaeMicroServiceController extends RestrictedBaseController {
// Get all keys with "MANY-true" defined in their value from subAttribute
Set<String> allkeys = null;
// Get all keys with "MANY-true" defined in their value from subAttribute
Set<String> allkeys = null;
- if (returnModel.getSub
_attributes() != null && !returnModel.getSub_a
ttributes().isEmpty()) {
- JSONObject json = new JSONObject(returnModel.getSub
_a
ttributes());
+ if (returnModel.getSub
Attributes() != null && !returnModel.getSubA
ttributes().isEmpty()) {
+ JSONObject json = new JSONObject(returnModel.getSub
A
ttributes());
getAllKeys(json);
allkeys = allManyTrueKeys;
allManyTrueKeys = new TreeSet<>();
getAllKeys(json);
allkeys = allManyTrueKeys;
allManyTrueKeys = new TreeSet<>();
@@
-942,8
+942,8
@@
public class CreateDcaeMicroServiceController extends RestrictedBaseController {
jsonModel = finalJsonObject.toString();
}
jsonModel = finalJsonObject.toString();
}
- // get all properties with "MANY-true" defined in Ref
_a
ttributes
- Set<String> manyTrueProperties = getManyTrueProperties(returnModel.getRef
_a
ttributes());
+ // get all properties with "MANY-true" defined in Ref
A
ttributes
+ Set<String> manyTrueProperties = getManyTrueProperties(returnModel.getRef
A
ttributes());
if (manyTrueProperties != null) {
JSONObject jsonObj = new JSONObject(jsonModel);
for (String s : manyTrueProperties) {
if (manyTrueProperties != null) {
JSONObject jsonObj = new JSONObject(jsonModel);
for (String s : manyTrueProperties) {
@@
-988,7
+988,7
@@
public class CreateDcaeMicroServiceController extends RestrictedBaseController {
if (attribute != null) {
attribute = attribute.trim();
}
if (attribute != null) {
attribute = attribute.trim();
}
- String refAttribute = returnModel.getRef
_a
ttributes();
+ String refAttribute = returnModel.getRef
A
ttributes();
if (refAttribute != null) {
refAttribute = refAttribute.trim();
}
if (refAttribute != null) {
refAttribute = refAttribute.trim();
}
@@
-1005,7
+1005,7
@@
public class CreateDcaeMicroServiceController extends RestrictedBaseController {
Gson gson = new Gson();
Gson gson = new Gson();
- String subAttributes = returnModel.getSub
_a
ttributes();
+ String subAttributes = returnModel.getSub
A
ttributes();
if (subAttributes != null) {
subAttributes = subAttributes.trim();
} else {
if (subAttributes != null) {
subAttributes = subAttributes.trim();
} else {