Skip to content

Commit 6b0d7c0

Browse files
committed
ZOOKEEPER-5050. Checkstyle fixes
1 parent e7357cc commit 6b0d7c0

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

zookeeper-server/src/main/java/org/apache/zookeeper/server/admin/AdminServerFactory.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@ public static AdminServer createAdminServer() {
4545
Object adminServer = jettyAdminServerC.getConstructor().newInstance();
4646
return (AdminServer) adminServer;
4747

48-
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException |
49-
InvocationTargetException | NoSuchMethodException e) {
48+
} catch (ClassNotFoundException
49+
| InstantiationException
50+
| IllegalAccessException
51+
| InvocationTargetException
52+
| NoSuchMethodException e) {
5053
LOG.warn("Unable to start JettyAdminServer", e);
5154
} catch (NoClassDefFoundError e) {
5255
LOG.warn("Unable to load jetty, not starting JettyAdminServer", e);

zookeeper-server/src/test/java/org/apache/zookeeper/server/admin/AdminServerFactoryTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818

1919
package org.apache.zookeeper.server.admin;
2020

21-
import org.junit.jupiter.api.AfterEach;
22-
import org.junit.jupiter.api.Test;
23-
2421
import static org.junit.jupiter.api.Assertions.assertFalse;
2522
import static org.junit.jupiter.api.Assertions.assertTrue;
23+
import org.junit.jupiter.api.AfterEach;
24+
import org.junit.jupiter.api.Test;
2625

2726
public class AdminServerFactoryTest {
2827

0 commit comments

Comments
 (0)