aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanagaraj Manickam <kanagaraj.manickam@huawei.com>2022-04-07 12:26:47 +0000
committerGerrit Code Review <gerrit@onap.org>2022-04-07 12:26:47 +0000
commitd128aac0441af4ace5de9174c303c6ca4a87ff7b (patch)
tree4e53f56be51cfd349ebc179a93162a5e1e3ec59c
parent0df43adfbd30158aa992c08ca0fbe55a6d277dec (diff)
parent097232ce209034cd2fde61903a04f7ba3391f746 (diff)
Merge "Renamed variables to not match a restricted identifier"
-rw-r--r--framework/src/main/java/org/onap/cli/fw/output/OnapCommandResult.java24
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;