This commit is contained in:
Dmitry Avdeev
2017-04-17 13:46:46 +03:00
parent 8fdaea344b
commit 69c8b644f9
@@ -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;
}