mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Change code to make Eclipse compiler happy
Extract a local variable to fix compiler error that only seems to happen in Eclipse.
This commit is contained in:
+2
-1
@@ -138,7 +138,8 @@ public class ContextPairs {
|
||||
*/
|
||||
@SuppressWarnings("NullAway") // Doesn't detect lambda with correct nullability
|
||||
public <V> void addMapEntries(Function<T, Map<String, V>> extractor) {
|
||||
add(extractor.andThen(Map::entrySet), Map.Entry::getKey, Map.Entry::getValue);
|
||||
Function<T, @Nullable Iterable<Map.Entry<String, V>>> elementsExtractor = extractor.andThen(Map::entrySet);
|
||||
add(elementsExtractor, Map.Entry::getKey, Map.Entry::getValue);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user