diff options
author | Jim Hahn <jrh3@att.com> | 2021-06-17 14:54:22 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-06-17 15:13:19 -0400 |
commit | 2ebe1425ae8e90d5243960a5ac66dd009251b75b (patch) | |
tree | 17536efd4b37eef283a0516365c672ae5095993a /controlloop/common/eventmanager/src/main/java | |
parent | 42f9de83e46be30d947de156b6174f753fc3e48d (diff) |
Use lombok in drools-apps
Issue-ID: POLICY-3398
Change-Id: I2afedc900bc268dc83f689624b4daabdb64a09f9
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'controlloop/common/eventmanager/src/main/java')
2 files changed, 10 insertions, 12 deletions
diff --git a/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ActorConstants.java b/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ActorConstants.java index 26d5ab8bf..7cba9063c 100644 --- a/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ActorConstants.java +++ b/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ActorConstants.java @@ -20,16 +20,15 @@ package org.onap.policy.controlloop.eventmanager; -public class ActorConstants { +import lombok.AccessLevel; +import lombok.NoArgsConstructor; + +@NoArgsConstructor(access = AccessLevel.PRIVATE) +public final class ActorConstants { public static final String CL_TIMEOUT_ACTOR = "-CL-TIMEOUT-"; public static final String LOCK_ACTOR = "LOCK"; public static final String LOCK_OPERATION = "Lock"; public static final String UNLOCK_OPERATION = "Unlock"; public static final String PAYLOAD_KEY_VF_COUNT = "vfCount"; - - - private ActorConstants() { - // do nothing - } } diff --git a/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/utils/ControlLoopUtils.java b/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/utils/ControlLoopUtils.java index 3e990efc4..b04e32003 100644 --- a/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/utils/ControlLoopUtils.java +++ b/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/utils/ControlLoopUtils.java @@ -1,6 +1,6 @@ /*- * ============LICENSE_START======================================================= - * Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2019-2021 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,6 +18,8 @@ package org.onap.policy.controlloop.utils; +import lombok.AccessLevel; +import lombok.NoArgsConstructor; import org.onap.policy.controlloop.ControlLoopException; import org.onap.policy.controlloop.drl.legacy.ControlLoopParams; import org.onap.policy.controlloop.processor.ControlLoopProcessor; @@ -28,14 +30,11 @@ import org.slf4j.LoggerFactory; /** * Control Loop Utils. */ -public class ControlLoopUtils { +@NoArgsConstructor(access = AccessLevel.PRIVATE) +public final class ControlLoopUtils { public static final Logger logger = LoggerFactory.getLogger(ControlLoopUtils.class); - private ControlLoopUtils() { - super(); - } - /** * Get a Control Loop Parameters object from a Tosca Policy. */ |