More helpful `SlaveComputer.toString` (#10595)

This commit is contained in:
Jesse Glick 2025-04-26 11:33:09 -04:00 committed by GitHub
parent 7113ca45cb
commit 72c7109df6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -977,6 +977,11 @@ public class SlaveComputer extends Computer {
}
}
@Override
public String toString() {
return nodeName != null ? super.toString() + "[" + nodeName + "]" : super.toString();
}
/**
* Grabs a {@link ComputerLauncher} out of {@link Node} to keep it in this {@link Computer}.
* The returned launcher will be set to {@link #launcher} and used to carry out the actual launch operation.