karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject [2/2] karaf git commit: Fix small indentation problem in JsonWriter
Date Mon, 17 Oct 2016 09:59:26 GMT
Fix small indentation problem in JsonWriter

Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/887770ed
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/887770ed
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/887770ed

Branch: refs/heads/master
Commit: 887770ed417df4a16ad808b983b1f8a24409a0b4
Parents: aebb6fd
Author: Guillaume Nodet <gnodet@apache.org>
Authored: Wed Oct 12 11:14:56 2016 +0200
Committer: Guillaume Nodet <gnodet@apache.org>
Committed: Mon Oct 17 11:59:01 2016 +0200

----------------------------------------------------------------------
 .../java/org/apache/karaf/features/internal/util/JsonWriter.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/887770ed/features/core/src/main/java/org/apache/karaf/features/internal/util/JsonWriter.java
----------------------------------------------------------------------
diff --git a/features/core/src/main/java/org/apache/karaf/features/internal/util/JsonWriter.java
b/features/core/src/main/java/org/apache/karaf/features/internal/util/JsonWriter.java
index b65ea27..0135980 100644
--- a/features/core/src/main/java/org/apache/karaf/features/internal/util/JsonWriter.java
+++ b/features/core/src/main/java/org/apache/karaf/features/internal/util/JsonWriter.java
@@ -88,7 +88,7 @@ public final class JsonWriter {
             if (indent >= 0) {
                 writer.append(' ');
             }
-            write(writer, entry.getValue(), indent + 1);
+            write(writer, entry.getValue(), indent >= 0 ? indent + 1 : -1);
         }
         if (indent >= 0) {
             indent(writer, indent);


Mime
View raw message