mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-84977 Use distinctKeys instead of distinct to avoid duplicate entries for toMap in PyClassImpl
GitOrigin-RevId: e09de50357a09b0dc3d8440998b650042ba1982d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
31b42c1dcf
commit
441ca725f9
@@ -1148,7 +1148,7 @@ public class PyClassImpl extends PyBaseElementImpl<PyClassStub> implements PyCla
|
||||
Map<String, ScopeOwner> scopesToSkip = StreamEx.of(getInstanceAttributes())
|
||||
.filter(e -> e.getName() != null)
|
||||
.mapToEntry(e -> e.getName(), e -> ScopeUtil.getScopeOwner(e))
|
||||
.distinct()
|
||||
.distinctKeys()
|
||||
.toMap();
|
||||
attributes = collectInstanceAttributes(scopesToSkip);
|
||||
myFallbackInstanceAttributes = attributes;
|
||||
|
||||
Reference in New Issue
Block a user