commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [2/3] [lang] JsonToStringStyle: improve private constant name and remove wrong comment
Date Fri, 20 Jan 2017 17:48:43 GMT
JsonToStringStyle: improve private constant name and remove wrong comment


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/bd7788b3
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/bd7788b3
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/bd7788b3

Branch: refs/heads/master
Commit: bd7788b384a87024ddd6bbe6a9bd9a167cf2ec12
Parents: 0443674
Author: pascalschumacher <pascalschumacher@gmx.net>
Authored: Fri Jan 20 18:46:34 2017 +0100
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Fri Jan 20 18:46:34 2017 +0100

----------------------------------------------------------------------
 .../org/apache/commons/lang3/builder/ToStringStyle.java     | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/bd7788b3/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java b/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java
index 1658198..645525e 100644
--- a/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java
+++ b/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java
@@ -2363,10 +2363,7 @@ public abstract class ToStringStyle implements Serializable {
 
         private static final long serialVersionUID = 1L;
 
-        /**
-         * The summary size text start <code>'&gt;'</code>.
-         */
-        private static final String FIELD_NAME_PREFIX = "\"";
+        private static final String FIELD_NAME_QUOTE = "\"";
 
         /**
          * <p>
@@ -2621,8 +2618,8 @@ public abstract class ToStringStyle implements Serializable {
                         "Field names are mandatory when using JsonToStringStyle");
             }
 
-            super.appendFieldStart(buffer, FIELD_NAME_PREFIX + fieldName
-                    + FIELD_NAME_PREFIX);
+            super.appendFieldStart(buffer, FIELD_NAME_QUOTE + fieldName
+                    + FIELD_NAME_QUOTE);
         }
 
         /**


Mime
View raw message