Suppress deprecation warnings from ServletScopes
Yes, these are deprecated, but they have been working fine for us for a long time, and it's not obvious that the suggested replacement will work. Change-Id: I1ef773b160ba3aef8fa6fcf509c03d88c6217f1a
This commit is contained in:
@@ -52,6 +52,10 @@ public class GuiceRequestScopePropagator extends RequestScopePropagator {
|
||||
/**
|
||||
* @see RequestScopePropagator#wrap(Callable)
|
||||
*/
|
||||
// ServletScopes#continueRequest is deprecated, but it's not obvious their
|
||||
// recommended replacement is an appropriate drop-in solution; see
|
||||
// https://gerrit-review.googlesource.com/83971
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
protected <T> Callable<T> wrapImpl(Callable<T> callable) {
|
||||
Map<Key<?>, Object> seedMap = new HashMap<>();
|
||||
|
||||
@@ -85,6 +85,7 @@ public abstract class RequestScopePropagator {
|
||||
* @param callable the Callable to wrap.
|
||||
* @return a new Callable which will execute in the current request scope.
|
||||
*/
|
||||
@SuppressWarnings("javadoc") // See GuiceRequestScopePropagator#wrapImpl
|
||||
public final <T> Callable<T> wrap(final Callable<T> callable) {
|
||||
final RequestContext callerContext = checkNotNull(local.getContext());
|
||||
final Callable<T> wrapped =
|
||||
|
||||
Reference in New Issue
Block a user