Skip to content

Commit 6fd2d2b

Browse files
committed
Fix wrong stop condition in for loop.
1 parent 5b54c44 commit 6fd2d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/gcinterceptor/msgpush/MsgPush.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static class HelloController {
5555
public void index() throws InterruptedException {
5656
byte[] byteArray = new byte[MSG_SIZE];
5757

58-
for (int i = 0; i <= MSG_SIZE; i++) {
58+
for (int i = 0; i < MSG_SIZE; i++) {
5959
byteArray[i] = (byte) i;
6060
}
6161

0 commit comments

Comments
 (0)