Browse Source

Clean up warnings in spring-core

pull/1785/head
Sam Brannen 7 years ago
parent
commit
8874427cf4
  1. 1
      spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java
  2. 3
      spring-core/src/main/java/org/springframework/util/concurrent/CompletableToListenableFutureAdapter.java

1
spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java

@ -126,6 +126,7 @@ public abstract class AnnotationUtils { @@ -126,6 +126,7 @@ public abstract class AnnotationUtils {
private static final Map<Class<?>, Set<Method>> annotatedBaseTypeCache =
new ConcurrentReferenceHashMap<>(256);
@SuppressWarnings("unused")
@Deprecated // just here for older tool versions trying to reflectively clear the cache
private static final Map<Class<?>, ?> annotatedInterfaceCache = annotatedBaseTypeCache;

3
spring-core/src/main/java/org/springframework/util/concurrent/CompletableToListenableFutureAdapter.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -21,7 +21,6 @@ import java.util.concurrent.CompletionStage; @@ -21,7 +21,6 @@ import java.util.concurrent.CompletionStage;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.function.BiConsumer;
/**
* Adapts a {@link CompletableFuture} or {@link CompletionStage} into a

Loading…
Cancel
Save