@@ -68,34 +68,34 @@ boolean isLocal() {
6868 }
6969
7070 boolean isAvailable () {
71- return switch (this ) {
72- case NIO -> true ;
73- case EPOLL -> Epoll .isAvailable ();
74- case IO_URING -> IoUring .isAvailable ();
75- case LOCAL -> true ;
76- default -> false ;
77- };
71+ return switch (this ) {
72+ case NIO -> true ;
73+ case EPOLL -> Epoll .isAvailable ();
74+ case IO_URING -> IoUring .isAvailable ();
75+ case LOCAL -> true ;
76+ default -> false ;
77+ };
7878 }
7979
8080 IoHandlerFactory handlerFactory () {
81- return switch (this ) {
82- case NIO -> NioIoHandler .newFactory ();
83- case EPOLL -> EpollIoHandler .newFactory ();
84- case IO_URING -> IoUringIoHandler .newFactory ();
85- case LOCAL -> LocalIoHandler .newFactory ();
86- default -> throw new IllegalStateException ();
87- };
81+ return switch (this ) {
82+ case NIO -> NioIoHandler .newFactory ();
83+ case EPOLL -> EpollIoHandler .newFactory ();
84+ case IO_URING -> IoUringIoHandler .newFactory ();
85+ case LOCAL -> LocalIoHandler .newFactory ();
86+ default -> throw new IllegalStateException ();
87+ };
8888 }
8989
9090 Class <? extends io .netty .channel .ServerChannel > serverChannelClass () {
91- return switch (this ) {
92- case NIO -> NioServerSocketChannel .class ;
93- case EPOLL -> EpollServerSocketChannel .class ;
94- case IO_URING -> IoUringServerSocketChannel .class ;
95- case LOCAL -> throw new IllegalStateException (
96- "LOCAL transport does not provide a ServerChannel class for real networking" );
97- default -> throw new IllegalStateException ();
98- };
91+ return switch (this ) {
92+ case NIO -> NioServerSocketChannel .class ;
93+ case EPOLL -> EpollServerSocketChannel .class ;
94+ case IO_URING -> IoUringServerSocketChannel .class ;
95+ case LOCAL -> throw new IllegalStateException (
96+ "LOCAL transport does not provide a ServerChannel class for real networking" );
97+ default -> throw new IllegalStateException ();
98+ };
9999 }
100100 }
101101
0 commit comments