Skip to content

Commit 0db3439

Browse files
Copilotnixel2007
andcommitted
Use getChildCount() instead of accessing children field directly
Co-authored-by: nixel2007 <[email protected]>
1 parent c3d122a commit 0db3439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/IdenticalExpressionsDiagnostic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,6 @@ private static boolean isComplementary(BinaryOperationNode binary) {
235235
}
236236

237237
private static boolean sufficientSize(BSLParser.ExpressionContext ctx) {
238-
return ctx.children == null || ctx.children.size() < MIN_EXPRESSION_SIZE;
238+
return ctx.getChildCount() < MIN_EXPRESSION_SIZE;
239239
}
240240
}

0 commit comments

Comments
 (0)