Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit 13e4a94

Browse files
committed
delayed commit?
1 parent 9e2ced9 commit 13e4a94

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/main/java/com/kttdevelopment/simplehttpserver/handler/ThrottledHandler.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @see ServerThrottler
1212
* @see SessionThrottler
1313
* @since 03.03.00
14-
* @version 03.03.00
14+
* @version 03.05.00
1515
* @author Ktt Development
1616
*/
1717
public class ThrottledHandler implements HttpHandler {
@@ -46,17 +46,15 @@ public final void handle(final HttpExchange exchange) throws IOException{
4646
}
4747
}
4848

49-
@SuppressWarnings("StringBufferReplaceableByString")
49+
//
50+
5051
@Override
5152
public String toString(){
52-
final StringBuilder OUT = new StringBuilder();
53-
54-
OUT.append("ThrottledHandler") .append('{');
55-
OUT.append("handler") .append('=') .append(handler) .append(", ");
56-
OUT.append("throttler") .append('=') .append(throttler);
57-
OUT.append('}');
58-
59-
return OUT.toString();
53+
return
54+
"ThrottledHandler" + '{' +
55+
"handler" + '=' + handler + ", " +
56+
"throttler" + '=' + throttler +
57+
'}';
6058
}
6159

6260
}

0 commit comments

Comments
 (0)