Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ public String getType() {

@Override
public String toString() {
return String.format("%s through %s", super.toString(), memberName);
String result = String.format("%s through %s", super.toString(), memberName);
String source = getSource();
if (source != null) {
result = String.format("%s (source: %s)", result, source);
}
return result;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ public Command getItemCommand() {

@Override
public String toString() {
return String.format("Item '%s' received command %s", itemName, command);
String result = String.format("Item '%s' received command %s", itemName, command);
String source = getSource();
if (source != null) {
result = String.format("%s (source: %s)", result, source);
}
return result;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ public State getOldItemState() {

@Override
public String toString() {
return String.format("Item '%s' changed from %s to %s", itemName, oldItemState, itemState);
String result = String.format("Item '%s' changed from %s to %s", itemName, oldItemState, itemState);
String source = getSource();
if (source != null) {
result = String.format("%s (source: %s)", result, source);
}
return result;
}
}