diff options
author | sharath reddy <bs.reddy@huawei.com> | 2022-04-04 18:27:44 +0530 |
---|---|---|
committer | sharath reddy <bs.reddy@huawei.com> | 2022-04-04 18:28:17 +0530 |
commit | 097232ce209034cd2fde61903a04f7ba3391f746 (patch) | |
tree | 5a08383cf78bd3566a0e72180140d38f3d828465 /framework/src | |
parent | 19a75142348a233c027d7a2e7e87721ed3500cc3 (diff) |
Renamed variables to not match a restricted identifier
Issue-ID: CLI-439
report: tested weather-report, execution-list
Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Change-Id: I9f66d0aeda50ad7981357ff2030b9a937a211a83
Diffstat (limited to 'framework/src')
-rw-r--r-- | framework/src/main/java/org/onap/cli/fw/output/OnapCommandResult.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/output/OnapCommandResult.java b/framework/src/main/java/org/onap/cli/fw/output/OnapCommandResult.java index fa9bcf02..cba7134d 100644 --- a/framework/src/main/java/org/onap/cli/fw/output/OnapCommandResult.java +++ b/framework/src/main/java/org/onap/cli/fw/output/OnapCommandResult.java @@ -120,8 +120,8 @@ public class OnapCommandResult { public Map<String, OnapCommandResultAttribute> getRecordsMap() { Map<String, OnapCommandResultAttribute> recordMap = new HashMap<>(); - for (OnapCommandResultAttribute record : this.getRecords()) { - recordMap.put(record.getName(), record); + for (OnapCommandResultAttribute data : this.getRecords()) { + recordMap.put(data.getName(), data); } return recordMap; @@ -194,8 +194,8 @@ public class OnapCommandResult { if (!this.getRecords().isEmpty()) { if (this.getPrintDirection().equals(OnapCommandPrintDirection.LANDSCAPE)) { - for (OnapCommandResultAttribute record : this.getScopedRecords()) { - print.addColumn(record.getName(), record.getValues()); + for (OnapCommandResultAttribute data : this.getScopedRecords()) { + print.addColumn(data.getName(), data.getValues()); } } else { // Add property column @@ -207,12 +207,12 @@ public class OnapCommandResult { val.setName(OnapCommandConstants.PORTRAINT_COLUMN_NAME_VALUE); val.setScope(OnapCommandResultAttributeScope.SHORT); - for (OnapCommandResultAttribute record : this.getScopedRecords()) { - prp.getValues().add(record.getName()); - if (record.getValues().size() == 1) { - val.getValues().add(record.getValues().get(0)); + for (OnapCommandResultAttribute data : this.getScopedRecords()) { + prp.getValues().add(data.getName()); + if (data.getValues().size() == 1) { + val.getValues().add(data.getValues().get(0)); } else { - val.getValues().add(record.getValues().toString()); + val.getValues().add(data.getValues().toString()); } } @@ -254,11 +254,11 @@ public class OnapCommandResult { private List<OnapCommandResultAttribute> getScopedRecords() { List<OnapCommandResultAttribute> recordList = new ArrayList<>(); - for (OnapCommandResultAttribute record : this.getRecords()) { - if (record.getScope().ordinal() > this.getScope().ordinal()) { + for (OnapCommandResultAttribute data : this.getRecords()) { + if (data.getScope().ordinal() > this.getScope().ordinal()) { continue; } - recordList.add(record); + recordList.add(data); } return recordList; |