diff --git a/core/src/main/java/hudson/model/Slave.java b/core/src/main/java/hudson/model/Slave.java index 9b0a02b338..c3a497f9a1 100644 --- a/core/src/main/java/hudson/model/Slave.java +++ b/core/src/main/java/hudson/model/Slave.java @@ -529,7 +529,12 @@ public abstract class Slave extends Node implements Serializable { /** * Gets the corresponding computer object. + * + * @return + * this method can return null if there's no {@link Computer} object for this node, + * such as when this node has no executors at all. */ + @CheckForNull public SlaveComputer getComputer() { return (SlaveComputer)toComputer(); }