Add `toString` implementation for `ExecutionPolicy`.
`ExecutionPolicy` uses the default `toString` implementation making it useless
for debugging. Add an implementation producing more readable output.
@@ -52,4 +52,9 @@ public final class ExecutionPolicy {
public boolean canRunLocally() {
return locality != Locality.REMOTE_ONLY;
}
+
+ @Override
+ public String toString() {
+ return locality.toString();
+ }
}
