@@ -64,40 +64,31 @@ public static void printReport(JsonWriter writer) throws IOException {
6464 }
6565
6666 private static void resourceReportElement (ResourceReportEntry p , JsonWriter w ) throws IOException {
67- w .indent ().newline ();
68- w .appendObjectStart ().newline ();
67+ w .appendObjectStart ();
6968 w .appendKeyValue ("name" , p .resourceName ()).appendSeparator ();
70- w .newline ();
7169 if (p .module () != null ) {
7270 w .appendKeyValue ("module" , p .module ().getName ()).appendSeparator ();
73- w .newline ();
7471 }
7572
7673 if (p .isDirectory ()) {
7774 w .appendKeyValue ("is_directory" , true ).appendSeparator ();
78- w .newline ();
7975 }
8076
8177 if (p .isMissing ()) {
8278 w .appendKeyValue ("is_missing" , true ).appendSeparator ();
83- w .newline ();
8479 }
8580
86- w .quote ("entries" ).append ( ":" );
81+ w .quote ("entries" ).appendFieldSeparator ( );
8782 JsonPrinter .printCollection (w , p .entries (), Comparator .comparing (SourceSizePair ::source ), EmbeddedResourceExporter ::sourceElement );
88- w .unindent (). newline (). appendObjectEnd ();
83+ w .appendObjectEnd ();
8984 }
9085
9186 private static void sourceElement (SourceSizePair p , JsonWriter w ) throws IOException {
92- w .indent ().newline ();
93- w .appendObjectStart ().newline ();
87+ w .appendObjectStart ();
9488 w .appendKeyValue ("origin" , p .source ()).appendSeparator ();
95- w .newline ();
9689 w .appendKeyValue ("registration_origin" , p .origin ()).appendSeparator ();
97- w .newline ();
9890 w .appendKeyValue ("size" , p .size ());
99- w .newline ().appendObjectEnd ();
100- w .unindent ();
91+ w .appendObjectEnd ();
10192 }
10293
10394 private static List <ResourceReportEntry > getResourceReportEntryList (ConcurrentHashMap <Resources .ModuleResourceKey , List <SourceAndOrigin >> collection ) {
0 commit comments