Skip to content

Commit 65e6a2b

Browse files
committed
Guava 20
1 parent baa06ad commit 65e6a2b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

grpc-contrib/src/main/java/com/salesforce/grpc/contrib/MoreFutures.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,13 @@ public static <V> void onFailure(@Nonnull final ListenableFuture<V> future,
111111
* <p>If you are looking for a method to determine whether a given {@code Future} is done, use the
112112
* instance method {@link Future#isDone()}.
113113
*
114+
* @deprecated Use Guava {@code Futures.getDone()}
114115
* @throws ExecutionException if the {@code Future} failed with an exception
115116
* @throws CancellationException if the {@code Future} was cancelled
116117
* @throws IllegalStateException if the {@code Future} is not done
117118
* @since Guava 20.0
118119
*/
120+
@Deprecated
119121
public static <V> V getDone(Future<V> future) throws ExecutionException {
120122
/*
121123
* We throw IllegalStateException, since the call could succeed later. Perhaps we "should" throw
@@ -142,9 +144,11 @@ public static <V> V getDone(Future<V> future) throws ExecutionException {
142144
* <p>If you are looking for a method to determine whether a given {@code Future} is done, use the instance method
143145
* {@link Future#isDone()}.
144146
*
147+
* @deprecated Use Guava {@code Futures.getDoneUnchecked()}
145148
* @throws UncheckedExecutionException if the {@code Future} failed with an exception
146149
* @throws IllegalStateException if the {@code Future} is not done
147150
*/
151+
@Deprecated
148152
public static <V> V getDoneUnchecked(Future<V> future) {
149153
/*
150154
* We throw IllegalStateException, since the call could succeed later. Perhaps we "should" throw

grpc-contrib/src/main/java/com/salesforce/grpc/contrib/Statuses.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* <p>For example:
2727
* <pre>
28-
* import static com.salesforce.grpc.contrib.Statuses;
28+
* import static com.salesforce.grpc.contrib.Statuses.*;
2929
*
3030
* try {
3131
* stub.someServiceOperation(...);

0 commit comments

Comments
 (0)