TaskLocation: Add toString method.

Necessary because these objects are used in log messages.
This commit is contained in:
Gian Merlino 2016-03-01 17:52:04 -08:00
parent c82b680cd4
commit acd95d3e28
1 changed files with 9 additions and 0 deletions

View File

@ -82,4 +82,13 @@ public class TaskLocation
{
return Objects.hash(host, port);
}
@Override
public String toString()
{
return "TaskLocation{" +
"host='" + host + '\'' +
", port=" + port +
'}';
}
}