mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 04:52:20 +00:00
Merge pull request #3535 from jtnord/missing-annotation
Method just called and cast another method that was CheckForNull
This commit is contained in:
1 file changed
+5
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user