[git] @NotNull

This commit is contained in:
Kirill Likhodedov
2012-12-10 16:41:27 +04:00
parent 57cadeb347
commit 38caf3af18
@@ -101,9 +101,11 @@ public class DetailsCache {
}
}
@NotNull
public List<String> getBranches(final VirtualFile root, final AbstractHash hash) {
synchronized (myLock) {
return myBranches.get(new Pair<VirtualFile, AbstractHash>(root, hash));
List<String> branches = myBranches.get(new Pair<VirtualFile, AbstractHash>(root, hash));
return branches == null ? Collections.<String>emptyList() : branches;
}
}