diff options
author | Jim Hahn <jrh3@att.com> | 2021-08-02 15:28:00 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-08-06 09:22:13 -0400 |
commit | 338cc2611738783285f9edebd259f7e6bff3973d (patch) | |
tree | 86518ff526b89e6f2d24fb7ed1882fe95dd5c8e1 /plugins/plugins-context/plugins-context-locking/plugins-context-locking-hazelcast/src | |
parent | 7438fe5a86a9fcfaf248ee32197b24d1badaecb3 (diff) |
Use lombok in apex-pdp #3
Updated plugins thru plugins-persistence-jpa-eclipselink.
Issue-ID: POLICY-3391
Change-Id: Id7a5aeca8bb45c7a089f0b9d49c9ecd4bc8a7178
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'plugins/plugins-context/plugins-context-locking/plugins-context-locking-hazelcast/src')
-rw-r--r-- | plugins/plugins-context/plugins-context-locking/plugins-context-locking-hazelcast/src/main/java/org/onap/policy/apex/plugins/context/locking/hazelcast/HazelcastLock.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/plugins/plugins-context/plugins-context-locking/plugins-context-locking-hazelcast/src/main/java/org/onap/policy/apex/plugins/context/locking/hazelcast/HazelcastLock.java b/plugins/plugins-context/plugins-context-locking/plugins-context-locking-hazelcast/src/main/java/org/onap/policy/apex/plugins/context/locking/hazelcast/HazelcastLock.java index caec244b8..89f1b4425 100644 --- a/plugins/plugins-context/plugins-context-locking/plugins-context-locking-hazelcast/src/main/java/org/onap/policy/apex/plugins/context/locking/hazelcast/HazelcastLock.java +++ b/plugins/plugins-context/plugins-context-locking/plugins-context-locking-hazelcast/src/main/java/org/onap/policy/apex/plugins/context/locking/hazelcast/HazelcastLock.java @@ -2,6 +2,7 @@ * ============LICENSE_START======================================================= * Copyright (C) 2016-2018 Ericsson. All rights reserved. * Modifications Copyright (C) 2021 Nordix Foundation. + * Modifications Copyright (C) 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. @@ -25,6 +26,7 @@ import com.hazelcast.core.HazelcastInstance; import com.hazelcast.cp.lock.FencedLock; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReadWriteLock; +import lombok.Getter; /** * This class maps a Hazelcast {@link ILock} to a Java {@link ReadWriteLock}. @@ -33,6 +35,7 @@ import java.util.concurrent.locks.ReadWriteLock; */ public class HazelcastLock implements ReadWriteLock { // The Lock ID + @Getter private final String lockId; // The hazelcast lock @@ -54,15 +57,6 @@ public class HazelcastLock implements ReadWriteLock { } /** - * Get the lock Id of the lock. - * - * @return the lock ID - */ - public String getLockId() { - return lockId; - } - - /** * {@inheritDoc}. */ @Override |