Fix error prone BoxedPrimitiveEquality report Change 517822 [1] caused error prone to be run also for the healthcheck plugin. Truthfully, I looked into the commit as much as I could but didn't come up with a clear explanation as to why that is. Address the error prone issue to enable compiling the plugin again. [1] https://gerrit-review.googlesource.com/c/gerrit/+/517822 Change-Id: If0e8edd23fa2321b3fb46271b15a6739a6602ab5
diff --git a/src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/BlockedThreadsConfigurator.java b/src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/BlockedThreadsConfigurator.java index 8bfe53c..e122066 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/BlockedThreadsConfigurator.java +++ b/src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/BlockedThreadsConfigurator.java
@@ -98,7 +98,7 @@ if (specsClassified.size() == 1) { Map.Entry<Boolean, List<Threshold>> entry = specsClassified.entrySet().iterator().next(); - return Boolean.TRUE == entry.getKey() + return Boolean.TRUE.equals(entry.getKey()) ? deduplicatePrefixes(entry.getValue()) : deduplicateGlobal(entry.getValue()); }