From 6201362a5f95af45bac28585a543a893ee877932 Mon Sep 17 00:00:00 2001 From: Dave Brosius Date: Sat, 5 Feb 2011 19:19:13 -0500 Subject: [PATCH] don't use reference comparisons with Booleans --- core/src/main/java/hudson/slaves/SlaveComputer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/slaves/SlaveComputer.java b/core/src/main/java/hudson/slaves/SlaveComputer.java index dd7735d6ac..2fb6683021 100644 --- a/core/src/main/java/hudson/slaves/SlaveComputer.java +++ b/core/src/main/java/hudson/slaves/SlaveComputer.java @@ -580,7 +580,7 @@ public class SlaveComputer extends Computer { // if this method is called from within the slave computation thread, this should work Channel c = Channel.current(); - if (c!=null && c.getProperty("slave")==Boolean.TRUE) + if (c!=null && Boolean.TRUE.equals(c.getProperty("slave"))) return c; return null; -- GitLab