Remove Guava cache support

This commit removes `GuavaCache` and support classes. Caffeine supersedes
the caching support in the Google Guava library with an actively maintained
Java 8+ version in standalone form.

As it is the only Guava feature Spring framework integrates with, this
commit removes effectively any reference to Guava.

Issue: SPR-13797
This commit is contained in:
Stephane Nicoll
2016-07-08 10:57:05 +02:00
parent 7e783dd91f
commit 2bf9bc312e
9 changed files with 6 additions and 699 deletions

View File

@@ -1905,7 +1905,7 @@ public class SpelReproTests extends AbstractExpressionTests {
StandardEvaluationContext sec = new StandardEvaluationContext();
sec.setVariable("iterable", Collections.emptyList());
SpelExpressionParser parser = new SpelExpressionParser();
Expression expression = parser.parseExpression("T(org.springframework.expression.spel.SpelReproTests.GuavaLists).newArrayList(#iterable)");
Expression expression = parser.parseExpression("T(org.springframework.expression.spel.SpelReproTests.FooLists).newArrayList(#iterable)");
assertTrue(expression.getValue(sec) instanceof ArrayList);
}
@@ -2408,7 +2408,7 @@ public class SpelReproTests extends AbstractExpressionTests {
}
public static class GuavaLists {
public static class FooLists {
public static <T> List<T> newArrayList(Iterable<T> iterable) {
return new ArrayList<>();