提交 10517dbd 编写于 作者: S Stephen Connolly

Noting that there is a >99% certainty that these case use getInstance()

上级 ee1d04c0
......@@ -566,7 +566,7 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
*/
@CheckForNull
public Node getNode() {
Jenkins j = Jenkins.getInstanceOrNull();
Jenkins j = Jenkins.getInstanceOrNull(); // TODO confirm safe to assume non-null and use getInstance()
if (j == null) {
return null;
}
......@@ -1013,7 +1013,7 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
addNewExecutorIfNecessary();
if (!isAlive()) {
AbstractCIBase ciBase = Jenkins.getInstanceOrNull();
if (ciBase != null) {
if (ciBase != null) { // TODO confirm safe to assume non-null and use getInstance()
ciBase.removeComputer(Computer.this);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册