Skip to content

Commit e577c8c

Browse files
mbienMarkus Grönlund
authored andcommitted
8253641: Missing newline in the printout of certain JFR events
Co-authored-by: Michael Bien <mbien42@gmail.com> Reviewed-by: mgronlun
1 parent 89e5444 commit e577c8c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/jdk.jfr/share/classes/jdk/jfr/internal/tool/PrettyWriter.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,13 +437,16 @@ void printObject(RecordedObject object, long arraySize) {
437437
private void printClassLoader(RecordedClassLoader cl, String postFix) {
438438
// Purposely not printing class loader name to avoid cluttered output
439439
RecordedClass clazz = cl.getType();
440-
print(clazz == null ? "null" : clazz.getName());
441440
if (clazz != null) {
441+
print(clazz.getName());
442442
print(" (");
443443
print("id = ");
444444
print(String.valueOf(cl.getId()));
445-
println(")");
445+
print(")");
446+
} else {
447+
print("null");
446448
}
449+
println(postFix);
447450
}
448451

449452
private void printJavaFrame(RecordedFrame f, String postFix) {

0 commit comments

Comments
 (0)