Merge pull request #3535 from jtnord/missing-annotation

Method just called and cast another method that was CheckForNull
This commit is contained in:
Oleg Nenashev authored and GitHub committed 2018-07-07 11:46:59 +02:00
commit eee8fc7d8a
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();
}