Skip to content

Commit

Permalink
Removed unneccesary white space
Browse files Browse the repository at this point in the history
  • Loading branch information
JHOANG23 committed Sep 19, 2023
1 parent 5b4fa19 commit 03c4672
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
import static io.netty.handler.codec.http.HttpVersion.HTTP_1_1;

@Sharable
public class EncoderHandler extends ChannelOutboundHandlerAdapter {
public class EncoderHandler extends ChannelOutboundHandlerAdapter {

private static final byte[] OK = "ok".getBytes(CharsetUtil.UTF_8);

Expand All @@ -78,7 +78,7 @@ public EncoderHandler(Configuration configuration, PacketEncoder encoder) throws
}
}

private void readVersion() throws IOException {
private void readVersion() throws IOException {
Enumeration<URL> resources = getClass().getClassLoader().getResources("META-INF/MANIFEST.MF");
while (resources.hasMoreElements()) {
try (InputStream inputStream = resources.nextElement().openStream()){
Expand All @@ -92,7 +92,6 @@ private void readVersion() throws IOException {
version = name + "/" + attrs.getValue("Bundle-Version");
break;
}

} catch (IOException E) {
// skip it
}
Expand Down Expand Up @@ -162,7 +161,6 @@ private void sendMessage(HttpMessage msg, Channel channel, ByteBuf out, HttpResp

channel.writeAndFlush(LastHttpContent.EMPTY_LAST_CONTENT, promise).addListener(ChannelFutureListener.CLOSE);
}

private void sendError(HttpErrorMessage errorMsg, ChannelHandlerContext ctx, ChannelPromise promise) throws IOException {
final ByteBuf encBuf = encoder.allocateBuffer(ctx.alloc());
ByteBufOutputStream out = new ByteBufOutputStream(encBuf);
Expand Down

0 comments on commit 03c4672

Please sign in to comment.