Adapt to API and functional changes in Spring Framework 6 to fix tests.
These changes are also possibly applicable to SDG on Spring Framework 5 and are a candidate for backporting. Resolves gh-538.
This commit is contained in:
@@ -248,7 +248,7 @@ public abstract class AbstractGeodeSecurityIntegrationTests extends ForkingClien
|
||||
|
||||
CacheLoader<String, String> echoCacheLoader() {
|
||||
|
||||
return new CacheLoader<String, String>() {
|
||||
return new CacheLoader<>() {
|
||||
|
||||
@Override
|
||||
public String load(LoaderHelper<String, String> helper) throws CacheLoaderException {
|
||||
|
||||
@@ -163,7 +163,7 @@ public class EnableContinuousQueriesConfigurationIntegrationTests extends Forkin
|
||||
|
||||
private CacheListener<Long, TemperatureReading> temperatureReadingCounterListener() {
|
||||
|
||||
return new CacheListenerAdapter<Long, TemperatureReading>() {
|
||||
return new CacheListenerAdapter<>() {
|
||||
|
||||
@Override
|
||||
public void afterCreate(EntryEvent<Long, TemperatureReading> event) {
|
||||
@@ -198,7 +198,7 @@ public class EnableContinuousQueriesConfigurationIntegrationTests extends Forkin
|
||||
|
||||
private CacheLoader<Long, TemperatureReading> temperatureReadingsLoader() {
|
||||
|
||||
return new CacheLoader<Long, TemperatureReading>() {
|
||||
return new CacheLoader<>() {
|
||||
|
||||
@Override
|
||||
public TemperatureReading load(LoaderHelper<Long, TemperatureReading> helper) throws CacheLoaderException {
|
||||
|
||||
Reference in New Issue
Block a user