mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
java resolve: ensure cached all qualifiers do not lead to cached types based on ThreadLocalTypes values
fixes failed check for different types returned on different threads (see JavaResolveCache#reportUnstableType) GitOrigin-RevId: a5efd5e5a9657ad55c74e413185959c517e341e8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e9944a9b8a
commit
55426d88a9
@@ -0,0 +1,10 @@
|
||||
import java.util.*;
|
||||
import java.util.stream.*;
|
||||
|
||||
class MyTest {
|
||||
void m(Map<String, BladeInjectionInfo> directiveInfos){
|
||||
Map<String, BladeInjectionInfo> lowerCaseDirectiveInfos = directiveInfos.entrySet().stream()
|
||||
.collect(Collectors.toMap(entry -> entry.get<caret>Key().toLowerCase(Locale.ENGLISH),
|
||||
entry -> entry.getValue(), (a, b) -> b));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user