Fix mismatch in types of Predicates being used

We're going to need to switch away from Guava's Functions and Predicates for
everything and replace them with the java.util versions. Unfortunately there
does not appear to be an automated tool to do this all at once. Refaster got
close but doesn't seem to care about these particular types of mismatch (I
suspect we're using a different version of the JDK than the outside world;
ours is OK with Guava classes).

This also bumps up Guava to 0.23, which is needed for some new functionality
used in combination with Java 8 features.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=170531539
This commit is contained in:
mcilwain 2017-09-29 14:20:02 -07:00 committed by Ben McIlwain
parent 447b83f7db
commit a50ef39c04
9 changed files with 80 additions and 68 deletions

View file

@ -76,6 +76,6 @@ public class AppEngineTimeLimiter {
}
public static TimeLimiter create() {
return new SimpleTimeLimiter(new NewRequestThreadExecutorService());
return SimpleTimeLimiter.create(new NewRequestThreadExecutorService());
}
}