You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/01/15 14:14:03 UTC

(commons-net) branch master updated: Use +=

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
     new 22d021b9 Use +=
22d021b9 is described below

commit 22d021b90e12888f0b00b53236772107b5dc6795
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jan 15 09:13:58 2024 -0500

    Use +=
---
 .../java/org/apache/commons/net/telnet/TelnetClientFunctionalTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/net/telnet/TelnetClientFunctionalTest.java b/src/test/java/org/apache/commons/net/telnet/TelnetClientFunctionalTest.java
index a41a99dd..56e1aba1 100644
--- a/src/test/java/org/apache/commons/net/telnet/TelnetClientFunctionalTest.java
+++ b/src/test/java/org/apache/commons/net/telnet/TelnetClientFunctionalTest.java
@@ -80,7 +80,7 @@ public class TelnetClientFunctionalTest extends TestCase {
         while (readbytes.indexOf(end) < 0 && System.currentTimeMillis() - starttime < timeout) {
             if (is.available() > 0) {
                 final int ret_read = is.read(buffer);
-                readbytes = readbytes + new String(buffer, 0, ret_read);
+                readbytes += new String(buffer, 0, ret_read);
             } else {
                 Thread.sleep(500);
             }