summaryrefslogtreecommitdiffstats
path: root/tools/model-generator
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2021-06-24 17:01:11 +0100
committerliamfallon <liam.fallon@est.tech>2021-06-24 17:08:36 +0100
commit04561e175d3fde166c0f54e4dcd276e347340bde (patch)
tree145dcefb93ff2c4b22dbb129ac2f0789983b0fba /tools/model-generator
parent782b1a82328a1ba95d370a014c587e1ba13ca464 (diff)
Update apex-pdp for checkstyle 8.43
Issue-ID: POLICY-3206 Change-Id: I3873c85aab577e85a9ae6b610c3871ee4de6ea53 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'tools/model-generator')
-rw-r--r--tools/model-generator/src/main/java/org/onap/policy/apex/tools/model/generator/model2event/Model2JsonEventSchema.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/model-generator/src/main/java/org/onap/policy/apex/tools/model/generator/model2event/Model2JsonEventSchema.java b/tools/model-generator/src/main/java/org/onap/policy/apex/tools/model/generator/model2event/Model2JsonEventSchema.java
index 46fba872b..e48c233e2 100644
--- a/tools/model-generator/src/main/java/org/onap/policy/apex/tools/model/generator/model2event/Model2JsonEventSchema.java
+++ b/tools/model-generator/src/main/java/org/onap/policy/apex/tools/model/generator/model2event/Model2JsonEventSchema.java
@@ -1,6 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ * Modifications Copyright (C) 2021 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -300,7 +301,7 @@ public class Model2JsonEventSchema {
/**
* Process the state in the response.
* @param eventKeys the event keys
- * @param policies the policies to process
+ * @param policy the policy to process
*/
private void processState(final Set<AxArtifactKey> eventKeys, final AxPolicy policy) {
for (final AxState state : policy.getStateMap().values()) {
@@ -329,10 +330,12 @@ public class Model2JsonEventSchema {
/**
* Process the internal state.
* @param eventKeys the event keys
- * @param policies the policies to process
+ * @param firstState the first state to process
+ * @param state the state to process
*/
- private void processInternalState(final Set<AxArtifactKey> eventKeys, final String firsState, final AxState state) {
- if (state.getKey().getLocalName().equals(firsState)) {
+ private void processInternalState(final Set<AxArtifactKey> eventKeys, final String firstState,
+ final AxState state) {
+ if (state.getKey().getLocalName().equals(firstState)) {
return;
}
if ("NULL".equals(state.getNextStateSet().iterator().next())) {