From 1ab13954ea04cfc6541a0e35e58d376ec16dd1bb Mon Sep 17 00:00:00 2001 From: John Blum Date: Wed, 9 Jun 2021 16:31:09 -0700 Subject: [PATCH] Cleanup compiler warnings and unnecessary use of the Java @SuppressWarnings annotation. Edit Javadoc. --- .../AbstractGemFireOperationsSessionRepository.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/spring-session-data-geode/src/main/java/org/springframework/session/data/gemfire/AbstractGemFireOperationsSessionRepository.java b/spring-session-data-geode/src/main/java/org/springframework/session/data/gemfire/AbstractGemFireOperationsSessionRepository.java index 58ed47a..46a436f 100644 --- a/spring-session-data-geode/src/main/java/org/springframework/session/data/gemfire/AbstractGemFireOperationsSessionRepository.java +++ b/spring-session-data-geode/src/main/java/org/springframework/session/data/gemfire/AbstractGemFireOperationsSessionRepository.java @@ -85,11 +85,16 @@ import org.slf4j.LoggerFactory; * @author John Blum * @see java.time.Duration * @see java.time.Instant + * @see java.util.UUID * @see org.apache.geode.DataSerializable * @see org.apache.geode.DataSerializer * @see org.apache.geode.Delta * @see org.apache.geode.cache.EntryEvent + * @see org.apache.geode.cache.Operation * @see org.apache.geode.cache.Region + * @see org.apache.geode.cache.RegionAttributes + * @see org.apache.geode.cache.client.Pool + * @see org.apache.geode.cache.client.PoolManager * @see org.apache.geode.cache.util.CacheListenerAdapter * @see org.springframework.context.ApplicationEvent * @see org.springframework.context.ApplicationEventPublisher @@ -100,6 +105,7 @@ import org.slf4j.LoggerFactory; * @see org.springframework.session.SessionRepository * @see org.springframework.session.data.gemfire.config.annotation.web.http.GemFireHttpSessionConfiguration * @see org.springframework.session.data.gemfire.config.annotation.web.http.EnableGemFireHttpSession + * @see org.springframework.session.data.gemfire.events.SessionChangedEvent * @see org.springframework.session.data.gemfire.support.DeltaAwareDirtyPredicate * @see org.springframework.session.data.gemfire.support.IsDirtyPredicate * @see org.springframework.session.data.gemfire.support.SessionIdHolder @@ -734,7 +740,6 @@ public abstract class AbstractGemFireOperationsSessionRepository * @see org.springframework.session.Session * @see org.springframework.session.data.gemfire.AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes */ - @SuppressWarnings("serial") public static class GemFireSession implements Comparable, Session { protected static final String GEMFIRE_SESSION_TO_STRING = @@ -858,10 +863,9 @@ public abstract class AbstractGemFireOperationsSessionRepository * @see GemFireSessionAttributes * @see #getIsDirtyPredicate() */ - @SuppressWarnings("unchecked") protected T newSessionAttributes(Object lock) { - return (T) new GemFireSessionAttributes(lock) + return new GemFireSessionAttributes(lock) .configureWith(getIsDirtyPredicate()); }