mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
@NotNull
This commit is contained in:
@@ -946,7 +946,7 @@ public final class TreeUtil {
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static TreePath getSelectedPathIfOne(JTree tree) {
|
||||
public static TreePath getSelectedPathIfOne(@NotNull JTree tree) {
|
||||
TreePath[] paths = tree.getSelectionPaths();
|
||||
return paths != null && paths.length == 1 ? paths[0] : null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user