Skip to content

Commit ba61783

Browse files
committed
formatting and small fix after review
1 parent 67a7072 commit ba61783

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python-frontend/src/main/java/org/sonar/python/semantic/v2/types/AstBasedTypeInference.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ private static PythonType currentType(Name lhsName) {
167167
.orElse(null);
168168
}
169169

170-
public static Stream<Tree> getSymbolNonDeclarationUsageTrees(SymbolV2 symbol) {
170+
private static Stream<Tree> getSymbolNonDeclarationUsageTrees(SymbolV2 symbol) {
171171
return symbol.usages()
172172
.stream()
173173
// Function and class definition names will always have FunctionType and ClassType respectively

python-frontend/src/main/java/org/sonar/python/semantic/v2/types/TrivialTypePropagationVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private boolean isNumber(PythonType type) {
9191
private static PythonType toObjectType(PythonType type) {
9292
if (type == PythonType.UNKNOWN) {
9393
return type;
94-
} else if(type instanceof ObjectType objectType) {
94+
} else if (type instanceof ObjectType objectType) {
9595
return new ObjectType(objectType.typeWrapper(), objectType.attributes(), objectType.members(), objectType.typeSource());
9696
}
9797
return new ObjectType(type);

0 commit comments

Comments
 (0)