Skip to content

Commit

Permalink
Better readability on toString.
Browse files Browse the repository at this point in the history
  • Loading branch information
afeinberg committed Feb 3, 2010
1 parent 1486c16 commit 45be07f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/java/voldemort/server/protocol/admin/AsyncOperation.java
Expand Up @@ -39,6 +39,11 @@ public void run() {
markComplete();
}

@Override
public String toString() {
return getStatus().toString();
}

abstract public void operate() throws Exception;

@JmxOperation
Expand Down
Expand Up @@ -40,7 +40,7 @@ public String toString() {
for(Object value: values()) {
AsyncOperation operation = (AsyncOperation) value;
builder.append(operation.toString());
builder.append(", ");
builder.append(",\n");
}
builder.append("])");

Expand Down

0 comments on commit 45be07f

Please sign in to comment.