mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] add NotNull annotations
This commit is contained in:
@@ -56,6 +56,7 @@ public interface VcsLog {
|
||||
/**
|
||||
* Selects the commit node defined by the given reference (commit hash, branch or tag).
|
||||
*/
|
||||
@NotNull
|
||||
Future<Boolean> jumpToReference(String reference);
|
||||
|
||||
/**
|
||||
|
||||
@@ -85,6 +85,7 @@ public class VcsLogImpl implements VcsLog {
|
||||
return myUi.getDataPack().getRefsModel().getAllRefs();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Future<Boolean> jumpToReference(final String reference) {
|
||||
Collection<VcsRef> references = getAllReferences();
|
||||
|
||||
@@ -194,6 +194,7 @@ public class VcsLogUiImpl implements VcsLogUi, Disposable {
|
||||
return myUiProperties.isShowRootNames();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public Future<Boolean> jumpToCommit(@NotNull Hash commitHash) {
|
||||
SettableFuture<Boolean> future = SettableFuture.create();
|
||||
jumpTo(commitHash, new PairFunction<GraphTableModel, Hash, Integer>() {
|
||||
@@ -205,6 +206,7 @@ public class VcsLogUiImpl implements VcsLogUi, Disposable {
|
||||
return future;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public Future<Boolean> jumpToCommitByPartOfHash(@NotNull String commitHash) {
|
||||
SettableFuture<Boolean> future = SettableFuture.create();
|
||||
jumpTo(commitHash, new PairFunction<GraphTableModel, String, Integer>() {
|
||||
|
||||
Reference in New Issue
Block a user