From 92f08aff9f7a417cbc26ece2a83668571713c8e4 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Sun, 25 Dec 2022 14:55:33 +0100 Subject: [PATCH] Make childLog final to fix compilation on Java 20. This closes #12041 --- .../apache/lucene/replicator/nrt/TestStressNRTReplication.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestStressNRTReplication.java b/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestStressNRTReplication.java index def80b121b6..c2e6c5d89fc 100644 --- a/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestStressNRTReplication.java +++ b/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestStressNRTReplication.java @@ -612,7 +612,7 @@ public class TestStressNRTReplication extends LuceneTestCase { cmd.add("org.junit.runner.JUnitCore"); cmd.add(TestSimpleServer.class.getName()); - Writer childLog; + final Writer childLog; if (SEPARATE_CHILD_OUTPUT) { Path childOut = childTempDir.resolve(id + ".log");