Skip to content

Commit 12087d2

Browse files
committed
Suppress FutureReturnValueIgnored for expiring loaded messages.
There's not much one could do other than call `FutureTask.get(0L, TimeUnit.MICROSECONDS)` and, ignoring `TimeoutException`, capture the `ExecutionException` or `InterruptedException`, if any, and log them. This at least allows the synchronization of source with Google's monorepo which enforces errorprone-safety. Works around issue #6.
1 parent 93d7036 commit 12087d2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/com/github/fge/msgsimple/provider/LoadingMessageSourceProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ public MessageSource call()
249249
});
250250
}
251251

252+
@SuppressWarnings("FutureReturnValueIgnored")
252253
private void setupExpiry(final long duration, final TimeUnit unit)
253254
{
254255
final Runnable runnable = new Runnable()

0 commit comments

Comments
 (0)