Skip to content

Commit 505c699

Browse files
authored
- applies PR suggestions
1 parent d00b2db commit 505c699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/microsoft/graph/http/CoreHttpCallbackFutureWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* Wraps the HTTP execution in a future, not public by intention
1616
*/
1717
class CoreHttpCallbackFutureWrapper implements Callback {
18+
final CompletableFuture<Response> future = new CompletableFuture<>();
1819
public CoreHttpCallbackFutureWrapper(@Nonnull final Call call) {
1920
Objects.requireNonNull(call);
2021
future.whenComplete((r, ex) -> {
@@ -23,7 +24,6 @@ public CoreHttpCallbackFutureWrapper(@Nonnull final Call call) {
2324
}
2425
});
2526
}
26-
final CompletableFuture<Response> future = new CompletableFuture<>();
2727
@Override
2828
public void onFailure(Call arg0, IOException arg1) {
2929
future.completeExceptionally(arg1);

0 commit comments

Comments
 (0)