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-text.git


The following commit(s) were added to refs/heads/master by this push:
     new de8e66b  Fewer magic strings.
de8e66b is described below

commit de8e66b55e04473a1e536b030459a951a984009b
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Jul 21 13:23:42 2020 -0400

    Fewer magic strings.
---
 src/main/java/org/apache/commons/text/TextStringBuilder.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/text/TextStringBuilder.java 
b/src/main/java/org/apache/commons/text/TextStringBuilder.java
index a1b7bdf..b24170b 100644
--- a/src/main/java/org/apache/commons/text/TextStringBuilder.java
+++ b/src/main/java/org/apache/commons/text/TextStringBuilder.java
@@ -269,7 +269,7 @@ public class TextStringBuilder implements CharSequence, 
Appendable, Serializable
     /**
      * The size of the string {@code "false"}.
      */
-    private static final int FALSE_STRING_SIZE = "false".length();
+    private static final int FALSE_STRING_SIZE = 
Boolean.FALSE.toString().length();
 
     /**
      * Required for serialization support.
@@ -281,7 +281,7 @@ public class TextStringBuilder implements CharSequence, 
Appendable, Serializable
     /**
      * The size of the string {@code "true"}.
      */
-    private static final int TRUE_STRING_SIZE = "true".length();
+    private static final int TRUE_STRING_SIZE = 
Boolean.TRUE.toString().length();
 
     /**
      * Constructs an instance from a reference to a character array. Changes 
to the input chars are reflected in this

Reply via email to