@SuppressWarnings("deprecation") @Override public Set<Change.Id> getStarredChanges() { if (starredChanges == null) { if (starredChangesUtil == null) { throw new IllegalStateException("StarredChangesUtil is missing"); } try { starredChanges = FluentIterable.from( starredQuery != null ? starredQuery : starredChangesUtil.queryFromIndex(accountId)) .toSet(); } finally { starredQuery = null; } } return starredChanges; }
@SuppressWarnings("deprecation") public void asyncStarredChanges() { if (starredChanges == null && starredChangesUtil != null) { starredQuery = starredChangesUtil.queryFromIndex(accountId); } }