From c9f20a06d002567ca4d4b24c446c0ab384d8f79d Mon Sep 17 00:00:00 2001 From: Luck Date: Wed, 10 Nov 2021 09:00:24 +0000 Subject: Fix java compile configuration --- .../java/me/lucko/spark/common/command/modules/GcMonitoringModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spark-common/src') diff --git a/spark-common/src/main/java/me/lucko/spark/common/command/modules/GcMonitoringModule.java b/spark-common/src/main/java/me/lucko/spark/common/command/modules/GcMonitoringModule.java index 8e2d199..88d4169 100644 --- a/spark-common/src/main/java/me/lucko/spark/common/command/modules/GcMonitoringModule.java +++ b/spark-common/src/main/java/me/lucko/spark/common/command/modules/GcMonitoringModule.java @@ -129,7 +129,7 @@ public class GcMonitoringModule implements CommandModule { ); } - if (report.size() == 1) { + if (collectorStats.isEmpty()) { resp.replyPrefixed(text("No garbage collectors are reporting data.")); } else { report.forEach(resp::reply); -- cgit