From 7f864cb96ff44e193e733391f258daeaaf8f19ad Mon Sep 17 00:00:00 2001 From: Akshat Jain Date: Sat, 27 Jul 2024 00:55:52 +0530 Subject: [PATCH] Fix static check: openjdk17 strict compilation --- .../org/apache/druid/msq/counters/CounterSnapshotsTree.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/counters/CounterSnapshotsTree.java b/extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/counters/CounterSnapshotsTree.java index 0f7d990ef931..707a9794296a 100644 --- a/extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/counters/CounterSnapshotsTree.java +++ b/extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/counters/CounterSnapshotsTree.java @@ -121,7 +121,9 @@ public boolean equals(Object o) } CounterSnapshotsTree that = (CounterSnapshotsTree) o; synchronized (snapshotsMap) { - return Objects.equals(snapshotsMap, that.snapshotsMap); + synchronized (that.snapshotsMap) { + return Objects.equals(snapshotsMap, that.snapshotsMap); + } } }