Skip to content

Commit 769d786

Browse files
andreaguarinoguillaume-dequenne
authored andcommitted
Cleanup Typeshed class
1 parent 92c280f commit 769d786

File tree

4 files changed

+309
-248
lines changed

4 files changed

+309
-248
lines changed

python-frontend/src/main/java/org/sonar/python/semantic/ClassSymbolImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
import static org.sonar.python.tree.TreeUtils.locationInFile;
5050
import static org.sonar.python.types.TypeShed.isValidForProjectPythonVersion;
5151
import static org.sonar.python.types.TypeShed.normalizedFqn;
52-
import static org.sonar.python.types.TypeShed.symbolsFromDescriptor;
52+
import static org.sonar.python.types.TypeShed.symbolsFromProtobufDescriptors;
5353

5454
public class ClassSymbolImpl extends SymbolImpl implements ClassSymbol {
5555

@@ -145,7 +145,7 @@ public ClassSymbolImpl(SymbolsProtos.ClassSymbol classSymbolProto) {
145145
.filter(d -> isValidForProjectPythonVersion(d.getValidForList()))
146146
.forEach(proto -> descriptorsByFqn.computeIfAbsent(proto.getFullname(), d -> new HashSet<>()).add(proto));
147147
for (Map.Entry<String, Set<Object>> entry : descriptorsByFqn.entrySet()) {
148-
Set<Symbol> symbols = symbolsFromDescriptor(entry.getValue(), true);
148+
Set<Symbol> symbols = symbolsFromProtobufDescriptors(entry.getValue(), true);
149149
methods.add(symbols.size() > 1 ? AmbiguousSymbolImpl.create(symbols) : symbols.iterator().next());
150150
}
151151
addMembers(methods);

0 commit comments

Comments
 (0)