Skip to content

Commit

Permalink
Replace deprecated MoreExecutors.sameThreadExecutor() with MoreExecut…
Browse files Browse the repository at this point in the history
…ors.directExecutor().
  • Loading branch information
gilbode committed Dec 22, 2015
1 parent 95a5fe5 commit 3df384c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected ScheduledExecutorService executor() {
}
@Override public void failed(State from, Throwable failure) {
executor.shutdown();
}}, MoreExecutors.sameThreadExecutor());
}}, MoreExecutors.directExecutor());
return executor;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected ScheduledExecutorService executor() {
}
@Override public void failed(State from, Throwable failure) {
executor.shutdown();
}}, MoreExecutors.sameThreadExecutor());
}}, MoreExecutors.directExecutor());
return executor;
}
}

0 comments on commit 3df384c

Please sign in to comment.