Skip to content

Commit

Permalink
docs: Marking AggregationResult#get as Obsolete (#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
jainsahab committed Sep 11, 2023
1 parent 6cbb795 commit 252f854
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -15,9 +15,7 @@
*/
package com.google.cloud.datastore;

import static com.google.cloud.datastore.ValueType.DOUBLE;
import static com.google.cloud.datastore.ValueType.LONG;

import com.google.api.core.ObsoleteApi;
import com.google.common.base.MoreObjects;
import com.google.common.base.MoreObjects.ToStringHelper;
import java.util.Map;
Expand All @@ -41,6 +39,7 @@ public AggregationResult(Map<String, ? extends Value<?>> properties) {
* 'property_\d'
* @return An aggregation result value for the given alias.
*/
@ObsoleteApi("Please use getLong(String) instead, see Github issue #1175 for details.")
public Long get(String alias) {
return getLong(alias);
}
Expand Down

0 comments on commit 252f854

Please sign in to comment.