From 5c5147523091e069bfc0568916311d5e127c8fd8 Mon Sep 17 00:00:00 2001 From: liuchangqing Date: Fri, 5 Nov 2021 14:31:48 +0800 Subject: [PATCH] Fix String should use equals but not ==. (#12619) Fix String should use equals but not == (cherry picked from commit c2165e898f4e5cda7e89f5a7106263e7a1ec48ac) --- .../org/apache/bookkeeper/test/BookKeeperClusterTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/managed-ledger/src/test/java/org/apache/bookkeeper/test/BookKeeperClusterTestCase.java b/managed-ledger/src/test/java/org/apache/bookkeeper/test/BookKeeperClusterTestCase.java index e8bd07c7434a7..148da6fedd9c2 100644 --- a/managed-ledger/src/test/java/org/apache/bookkeeper/test/BookKeeperClusterTestCase.java +++ b/managed-ledger/src/test/java/org/apache/bookkeeper/test/BookKeeperClusterTestCase.java @@ -227,7 +227,7 @@ protected ServerConfiguration newServerConfiguration(int port, String zkServers, conf.setBookiePort(port); if (ledgerRootPath != "") { conf.setMetadataServiceUri("zk://" + zkUtil.getZooKeeperConnectString() + ledgerRootPath); - }else { + } else { conf.setZkServers(zkServers); } conf.setJournalDirName(journalDir.getPath());