Update apex-pdp for checkstyle 8.43 86/122186/1
authorliamfallon <liam.fallon@est.tech>
Thu, 24 Jun 2021 16:01:11 +0000 (17:01 +0100)
committerliamfallon <liam.fallon@est.tech>
Thu, 24 Jun 2021 16:08:36 +0000 (17:08 +0100)
Issue-ID: POLICY-3206
Change-Id: I3873c85aab577e85a9ae6b610c3871ee4de6ea53
Signed-off-by: liamfallon <liam.fallon@est.tech>
12 files changed:
model/basic-model/src/main/java/org/onap/policy/apex/model/basicmodel/concepts/AxModel.java
model/policy-model/src/main/java/org/onap/policy/apex/model/policymodel/concepts/AxState.java
model/policy-model/src/main/java/org/onap/policy/apex/model/policymodel/concepts/AxTask.java
services/services-engine/src/main/java/org/onap/policy/apex/service/engine/event/impl/jsonprotocolplugin/Apex2JsonEventConverter.java
services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexEngineServiceHandler.java
services/services-engine/src/main/java/org/onap/policy/apex/service/parameters/ApexParameters.java
services/services-engine/src/main/java/org/onap/policy/apex/service/parameters/carriertechnology/RestPluginCarrierTechnologyParameters.java
services/services-onappf/src/main/java/org/onap/policy/apex/services/onappf/handler/PdpUpdateMessageHandler.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2File.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2FileFiltered.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2FileIgnore.java
tools/model-generator/src/main/java/org/onap/policy/apex/tools/model/generator/model2event/Model2JsonEventSchema.java

index 4898b6d..b29743c 100644 (file)
@@ -279,7 +279,7 @@ public class AxModel extends AxConcept {
     /**
      * Check for consistent usage of a reference key in the model.
      *
-     * @param artifactKey The reference key to check
+     * @param referenceKey The reference key to check
      * @param referenceKeySet The set of reference keys encountered so far, this key is appended to the set
      * @param result The validation result to append to
      * @return the result of the validation
index 80e967f..fcc6d99 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
  *  Modifications Copyright (C) 2018 Samsung Electronics Co., Ltd.
- *  Modifications Copyright (C) 2019-2020 Nordix Foundation.
+ *  Modifications Copyright (C) 2019-2021 Nordix Foundation.
  *  Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -937,7 +937,7 @@ public class AxState extends AxConcept {
     /**
      * Compare the object fields on this state to another state.
      *
-     * @param the other state to compare with
+     * @param other the other state to compare with
      * @return the result of the comparison
      */
     private int compareObjectFields(final AxState other) {
index 20df8d8..34b35da 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
- *  Modifications Copyright (C) 2019-2020 Nordix Foundation.
+ *  Modifications Copyright (C) 2019-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.
@@ -483,7 +483,7 @@ public class AxTask extends AxConcept {
     /**
      * Validate a field.
      *
-     * @param key the key of the field to validate
+     * @param fieldKey the key of the field to validate
      * @param field the field to validate
      * @param direction The direction of the field
      * @param result The validation result to append to
@@ -533,7 +533,7 @@ public class AxTask extends AxConcept {
     /**
      * Validate a context album reference entry.
      *
-     * @param taskParameterEntry the context album reference entry to validate
+     * @param contextAlbumReference the context album reference entry to validate
      * @param result The validation result to append to
      * @return The result of the validation
      */
index d64d46a..56f0d6b 100644 (file)
@@ -466,7 +466,7 @@ public class Apex2JsonEventConverter implements ApexEventProtocolConverter {
      * Determine the name space field of the event header.
      *
      * @param jsonObject the event in JSON format
-     * @param eventName the name of the event
+     * @param name the name of the event
      * @param eventDefinition the definition of the event structure
      * @return the event version
      */
index f278fd5..ca76a53 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
- *  Modifications Copyright (C) 2020 Nordix Foundation.
+ *  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.
@@ -43,7 +43,6 @@ public class ApexEngineServiceHandler {
      * Instantiates a new engine holder with its engine service and EngDep service.
      *
      * @param apexEngineService the apex engine service
-     * @param engDepService     the EngDep service
      */
     ApexEngineServiceHandler(final EngineService apexEngineService) {
         this.apexEngineService = apexEngineService;
index 90c5f43..a9ed326 100644 (file)
@@ -258,8 +258,8 @@ public class ApexParameters implements ParameterGroup {
      *
      * @param handlerMapVariableName the variable name of the map on which the paired parameters are being checked
      * @param result The result object to which to append any error messages
-     * @param leftModeParameters The mode parameters being checked
-     * @param rightModeParameters The mode parameters being referenced by the checked parameters
+     * @param leftModeParameterMap The mode parameters being checked
+     * @param rightModeParameterMap The mode parameters being referenced by the checked parameters
      */
     private void validatePeeredModePeers(final String handlerMapVariableName, final BeanValidationResult result,
         final EventHandlerPeeredMode peeredMode, final Map<String, EventHandlerParameters> leftModeParameterMap,
index 4e086e8..2c5c4c0 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
- *  Modifications Copyright (C) 2019-2020 Nordix Foundation.
+ *  Modifications Copyright (C) 2019-2021 Nordix Foundation.
  *  Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -201,7 +201,7 @@ public class RestPluginCarrierTechnologyParameters extends CarrierTechnologyPara
     /**
      * Validate the HTTP headers.
      *
-     * @param result the result of the validation
+     * @return the result of the validation
      */
     private ValidationResult validateHttpHeaders() {
         if (httpHeaders == null) {
index 479ec9a..e6c2c39 100644 (file)
@@ -134,7 +134,6 @@ public class PdpUpdateMessageHandler {
      *
      * @param pdpUpdateMsg the pdp update message from pap
      * @param pdpMessageHandler pdp message handler
-     * @param pdpStatusContext the pdp status object in memory
      * @return pdpResponseDetails the pdp response
      */
     private PdpResponseDetails startOrStopApexEngineBasedOnPolicies(final PdpUpdate pdpUpdateMsg,
index 63565ab..ea1e301 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
- *  Modifications Copyright (C) 2020 Nordix Foundation.
+ *  Modifications Copyright (C) 2020-2021 Nordix Foundation.
  *  Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -85,7 +85,7 @@ public class TestFile2File {
     /**
      * Strip variable length text from file string.
      *
-     * @param textFileAsString the file to read and strip
+     * @param outFile the file to read and strip
      * @return the stripped string
      * @throws IOException on out file read exceptions
      */
index a890b8e..04dcb57 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
- *  Modifications Copyright (C) 2020 Nordix Foundation.
+ *  Modifications Copyright (C) 2020-2021 Nordix Foundation.
  *  Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -133,7 +133,7 @@ public class TestFile2FileFiltered {
     /**
      * Strip variable length text from file string.
      *
-     * @param textFileAsString the file to read and strip
+     * @param outFile the file to read and strip
      * @return the stripped string
      * @throws IOException on out file read exceptions
      */
index 328a52a..1fc98d6 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
- *  Modifications Copyright (C) 2020 Nordix Foundation.
+ *  Modifications Copyright (C) 2020-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.
@@ -95,7 +95,7 @@ public class TestFile2FileIgnore {
     /**
      * Strip variable length text from file string.
      *
-     * @param textFileAsString the file to read and strip
+     * @param outFile the file to read and strip
      * @return the stripped string
      * @throws IOException on out file read exceptions
      */
index 46fba87..e48c233 100644 (file)
@@ -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())) {