You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2021/05/28 15:35:47 UTC

[james-mime4j] 07/07: [WARNING] Remove unecessary toString calls

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

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-mime4j.git

commit 2a67295206b3dd3457fa4277c78f2485f0b80c63
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Thu May 27 14:46:56 2021 +0700

    [WARNING] Remove unecessary toString calls
    
    The StringBuilder handles the conversion
    itself.
---
 core/src/main/java/org/apache/james/mime4j/stream/ParserCursor.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/src/main/java/org/apache/james/mime4j/stream/ParserCursor.java b/core/src/main/java/org/apache/james/mime4j/stream/ParserCursor.java
index edb475e..0a5e2ab 100644
--- a/core/src/main/java/org/apache/james/mime4j/stream/ParserCursor.java
+++ b/core/src/main/java/org/apache/james/mime4j/stream/ParserCursor.java
@@ -79,11 +79,11 @@ public class ParserCursor {
     public String toString() {
         StringBuilder buffer = new StringBuilder();
         buffer.append('[');
-        buffer.append(Integer.toString(this.lowerBound));
+        buffer.append(this.lowerBound);
         buffer.append('>');
-        buffer.append(Integer.toString(this.pos));
+        buffer.append(this.pos);
         buffer.append('>');
-        buffer.append(Integer.toString(this.upperBound));
+        buffer.append(this.upperBound);
         buffer.append(']');
         return buffer.toString();
     }

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org