Skip to content

Commit

Permalink
Fix PMD issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesRabauer committed Dec 3, 2024
1 parent 2c4ee6f commit 4de3869
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import java.lang.reflect.Field;
import java.util.Objects;
import java.util.concurrent.locks.ReentrantLock;
import java.util.function.Consumer;

import org.eclipse.serializer.collections.HashEnum;
Expand Down Expand Up @@ -67,7 +68,7 @@ static <T> SpringDataEclipseStoreLazy.Default<T> buildWithLazy(final Lazy<T> laz
*
* @param <T> the type of the lazily referenced element
*/
@SuppressWarnings({"java:S2065"})
@SuppressWarnings({"java:S2065", "PMD.AvoidSynchronizedStatement"})
final class Default<T> implements SpringDataEclipseStoreLazy<T>
{
private T objectToBeWrapped;
Expand All @@ -76,6 +77,7 @@ final class Default<T> implements SpringDataEclipseStoreLazy<T>
private transient ObjectSwizzling loader;
private transient WorkingCopier<T> copier;
private transient boolean isStored;
private final transient ReentrantLock usageMarksLock = new ReentrantLock();
private final transient HashEnum<Object> usageMarks = HashEnum.New();

private Default(final Lazy<T> lazySubject)
Expand Down

0 comments on commit 4de3869

Please sign in to comment.