Apply SuppressWarnings annotation to methods appropriately.

This commit is contained in:
John Blum
2019-11-20 13:45:00 -08:00
parent 5f237f7fb5
commit 6825fb34d2
2 changed files with 6 additions and 6 deletions

View File

@@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.session.data.gemfire;
import static org.springframework.data.gemfire.util.RuntimeExceptionFactory.newIllegalStateException;
@@ -49,6 +48,9 @@ import org.apache.geode.cache.client.Pool;
import org.apache.geode.cache.client.PoolManager;
import org.apache.geode.cache.util.CacheListenerAdapter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.ApplicationEventPublisherAware;
@@ -75,9 +77,6 @@ import org.springframework.session.events.SessionExpiredEvent;
import org.springframework.util.Assert;
import org.springframework.util.ObjectUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* {@link AbstractGemFireOperationsSessionRepository} is an abstract base class encapsulating functionality
* common to all implementations that support {@link SessionRepository} operations backed by Apache Geode.
@@ -1082,7 +1081,6 @@ public abstract class AbstractGemFireOperationsSessionRepository
return this;
}
@SuppressWarnings("all")
@Override
public int compareTo(Session session) {
return getCreationTime().compareTo(session.getCreationTime());

View File

@@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.session.data.gemfire;
import java.util.HashMap;
@@ -70,6 +69,7 @@ public class GemFireOperationsSessionRepository extends AbstractGemFireOperation
* @see #configure(Session)
*/
@NonNull
@SuppressWarnings("all")
public Session createSession() {
return configure(GemFireSession.create());
}
@@ -161,6 +161,7 @@ public class GemFireOperationsSessionRepository extends AbstractGemFireOperation
* @see #commit(Session)
* @see #touch(Session)
*/
@SuppressWarnings("all")
private Session prepare(Session session) {
return touch(commit(registerInterest(configure(session))));
}
@@ -178,6 +179,7 @@ public class GemFireOperationsSessionRepository extends AbstractGemFireOperation
* @see #isNonNullAndDirty(Session)
* @see #doSave(Session)
*/
@SuppressWarnings("all")
public void save(@Nullable Session session) {
if (isNonNullAndDirty(session)) {