[vcs-log] add NotNull annotations

This commit is contained in:
Julia Beliaeva
2015-01-14 16:13:47 +03:00
parent 2394bc2830
commit f0ee490791
3 changed files with 4 additions and 0 deletions
@@ -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>() {