Added NoTryExecutor.toString() for better dumps.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
ab5fc29cca
commit
6bbd89e5db
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue