@@ -64,40 +64,31 @@ public static void printReport(JsonWriter writer) throws IOException {
64
64
}
65
65
66
66
private static void resourceReportElement (ResourceReportEntry p , JsonWriter w ) throws IOException {
67
- w .indent ().newline ();
68
- w .appendObjectStart ().newline ();
67
+ w .appendObjectStart ();
69
68
w .appendKeyValue ("name" , p .resourceName ()).appendSeparator ();
70
- w .newline ();
71
69
if (p .module () != null ) {
72
70
w .appendKeyValue ("module" , p .module ().getName ()).appendSeparator ();
73
- w .newline ();
74
71
}
75
72
76
73
if (p .isDirectory ()) {
77
74
w .appendKeyValue ("is_directory" , true ).appendSeparator ();
78
- w .newline ();
79
75
}
80
76
81
77
if (p .isMissing ()) {
82
78
w .appendKeyValue ("is_missing" , true ).appendSeparator ();
83
- w .newline ();
84
79
}
85
80
86
- w .quote ("entries" ).append ( ":" );
81
+ w .quote ("entries" ).appendFieldSeparator ( );
87
82
JsonPrinter .printCollection (w , p .entries (), Comparator .comparing (SourceSizePair ::source ), EmbeddedResourceExporter ::sourceElement );
88
- w .unindent (). newline (). appendObjectEnd ();
83
+ w .appendObjectEnd ();
89
84
}
90
85
91
86
private static void sourceElement (SourceSizePair p , JsonWriter w ) throws IOException {
92
- w .indent ().newline ();
93
- w .appendObjectStart ().newline ();
87
+ w .appendObjectStart ();
94
88
w .appendKeyValue ("origin" , p .source ()).appendSeparator ();
95
- w .newline ();
96
89
w .appendKeyValue ("registration_origin" , p .origin ()).appendSeparator ();
97
- w .newline ();
98
90
w .appendKeyValue ("size" , p .size ());
99
- w .newline ().appendObjectEnd ();
100
- w .unindent ();
91
+ w .appendObjectEnd ();
101
92
}
102
93
103
94
private static List <ResourceReportEntry > getResourceReportEntryList (ConcurrentHashMap <Resources .ModuleResourceKey , List <SourceAndOrigin >> collection ) {
0 commit comments