Skip to content

Commit

Permalink
Fix checkstyle error in SortingUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS94 committed Feb 14, 2023
1 parent 1a6663c commit 27ad1ca
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
import org.ballerinalang.langserver.completions.TypeCompletionItem;
import org.eclipse.lsp4j.CompletionItemKind;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
Expand Down Expand Up @@ -690,9 +689,9 @@ public static void sortCompletionsAfterConfigurableQualifier(CompletionContext c
String sortText;
if (lsCompletionItem.getType() == SYMBOL) {
Optional<Symbol> symbol = ((SymbolCompletionItem) lsCompletionItem).getSymbol();
if (symbol.isPresent() &&
symbol.get() instanceof TypeSymbol &&
((TypeSymbol)symbol.get()).subtypeOf(anydataType)) {
if (symbol.isPresent() &&
symbol.get() instanceof TypeSymbol &&
((TypeSymbol) symbol.get()).subtypeOf(anydataType)) {
sortText = SortingUtil.genSortText(1);
} else {
sortText = SortingUtil.genSortText(3);
Expand Down

0 comments on commit 27ad1ca

Please sign in to comment.