Skip to content

Commit

Permalink
fix deprecated api
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatov committed Aug 2, 2024
1 parent deb4bbc commit f98ab7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected HierarchyTreeStructure createHierarchyTreeStructure(@NotNull String ty
@Override
protected Comparator<NodeDescriptor<?>> getComparator() {
HierarchyBrowserManager.State state = HierarchyBrowserManager.getInstance(myProject).getState();
return state != null && state.SORT_ALPHABETICALLY ? AlphaComparator.INSTANCE : SourceComparator.INSTANCE;
return state != null && state.SORT_ALPHABETICALLY ? AlphaComparator.getInstance() : SourceComparator.INSTANCE;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void invoke(@NotNull Project project, @NotNull Editor editor, @NotNull Ps
List<ErlangCallbackSpec> callbackSpecs = ErlangNavigationUtil.getCallbackSpecs(function);
String presentation = ErlangPsiImplUtil.createFunctionPresentation(function);

PsiElementListNavigator.openTargets(editor, getNavigatables(presentation, callbackSpecs), "Go to callback specification", presentation, new DefaultPsiElementCellRenderer());
PsiElementListNavigator.openTargets(editor, getNavigatables(presentation, callbackSpecs), "Go to Callback Specification", presentation, new DefaultPsiElementCellRenderer(), null);
}

@Override
Expand All @@ -67,6 +67,6 @@ private static NavigatablePsiElement[] getNavigatables(String targetPresentation
ContainerUtil.addIfNotNull(navigatables, ErlangNavigationUtil.getNavigatableSpecFun(targetPresentation, specFun));
}

return navigatables.toArray(new NavigatablePsiElement[navigatables.size()]);
return navigatables.toArray(new NavigatablePsiElement[0]);
}
}

0 comments on commit f98ab7e

Please sign in to comment.