From edf44732de4b831d87980c3eed7ddbe2e34f49f4 Mon Sep 17 00:00:00 2001 From: Aayush Atharva Date: Fri, 26 Feb 2021 16:43:10 +0530 Subject: [PATCH] Remove unnecessary `this`. (#11035) Motivation: There are unnecessary `this` keyword usages in `HttpStaticFileServerHandler`. Modification: Removed unnecessary `this` keywords. Result: Clean code --- .../file/HttpStaticFileServerHandler.java | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java b/example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java index 4a7208241b..1e0b6c0aed 100644 --- a/example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java +++ b/example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java @@ -121,7 +121,7 @@ public class HttpStaticFileServerHandler extends SimpleChannelInboundHandler\r\n") - .append("") - .append("Listing of: ") - .append(dirPath) - .append("\r\n") + .append("\r\n") + .append("") + .append("Listing of: ") + .append(dirPath) + .append("\r\n") - .append("

Listing of: ") - .append(dirPath) - .append("

\r\n") + .append("

Listing of: ") + .append(dirPath) + .append("

\r\n") - .append("