Skip to content

Commit c41d30e

Browse files
committed
opt(checkstyle): optimize checkstyle
1 parent b2ade66 commit c41d30e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

framework/src/test/java/org/tron/common/jetty/SizeLimitHandlerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
/**
3232
* Tests the {@link org.eclipse.jetty.server.handler.SizeLimitHandler} body-size
33-
* enforcement configured in {@link HttpService#initContextHandler()}.
33+
* enforcement configured in {@link HttpService initContextHandler()}.
3434
*
3535
* <p>Covers:</p>
3636
* <ul>
@@ -191,7 +191,7 @@ public void testHttpAndJsonRpcHaveIndependentLimits() throws Exception {
191191
@Test
192192
public void testLimitIsBasedOnBytesNotCharacters() throws Exception {
193193
// Each CJK character is 3 UTF-8 bytes; 342 chars x 3 = 1026 bytes > 1024
194-
String cjk = repeat('\u4e00', 342);
194+
String cjk = repeat('', 342);
195195
Assert.assertEquals(342, cjk.length());
196196
Assert.assertEquals(1026, cjk.getBytes("UTF-8").length);
197197
Assert.assertEquals(413, post(httpServerUri, new StringEntity(cjk, "UTF-8")));

0 commit comments

Comments
 (0)