Added NoTryExecutor.toString() for better dumps.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2018-02-08 11:11:01 +01:00
parent ab5fc29cca
commit 6bbd89e5db
1 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,12 @@ public interface TryExecutor extends Executor
{
return false;
}
@Override
public String toString()
{
return String.format("%s@%x[%s]", getClass().getSimpleName(), hashCode(), executor);
}
}
public static final TryExecutor NO_TRY = task -> false;