tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkemn...@apache.org
Subject tapestry-5 git commit: append single characters more efficiently
Date Wed, 12 Aug 2015 11:33:18 GMT
Repository: tapestry-5
Updated Branches:
  refs/heads/master 363f61756 -> 7bfc88ebb


append single characters more efficiently


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/7bfc88eb
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/7bfc88eb
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/7bfc88eb

Branch: refs/heads/master
Commit: 7bfc88ebb5cceab555acabf97b6ca207fae79aa7
Parents: 363f617
Author: Jochen Kemnade <jochen.kemnade@eddyson.de>
Authored: Wed Aug 12 13:33:00 2015 +0200
Committer: Jochen Kemnade <jochen.kemnade@eddyson.de>
Committed: Wed Aug 12 13:33:00 2015 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/tapestry5/json/PrettyPrintSession.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/7bfc88eb/tapestry-json/src/main/java/org/apache/tapestry5/json/PrettyPrintSession.java
----------------------------------------------------------------------
diff --git a/tapestry-json/src/main/java/org/apache/tapestry5/json/PrettyPrintSession.java
b/tapestry-json/src/main/java/org/apache/tapestry5/json/PrettyPrintSession.java
index c371993..8f0c5f3 100644
--- a/tapestry-json/src/main/java/org/apache/tapestry5/json/PrettyPrintSession.java
+++ b/tapestry-json/src/main/java/org/apache/tapestry5/json/PrettyPrintSession.java
@@ -67,7 +67,7 @@ class PrettyPrintSession implements JSONPrintSession
     {
         if (position != Position.MARGIN)
         {
-            writer.write("\n");
+            writer.write('\n');
             position = Position.MARGIN;
         }
 
@@ -97,7 +97,7 @@ class PrettyPrintSession implements JSONPrintSession
     {
         if (position == Position.CONTENT)
         {
-            writer.print(" ");
+            writer.print(' ');
         }
     }
 


Mime
View raw message