8132209: DiagnosticCommandImpl.getNotificationInfo() may expose internal representation
Summary: DiagnosticCommandImpl.getNotificationInfo() may expose internal representation
Reviewed-by: skoivu, fparain, jbachorik
--- a/jdk/src/jdk.management/share/classes/com/sun/management/internal/DiagnosticCommandImpl.java Wed Jul 29 13:42:56 2015 +0100
+++ b/jdk/src/jdk.management/share/classes/com/sun/management/internal/DiagnosticCommandImpl.java Mon Aug 03 12:18:10 2015 +0300
@@ -343,7 +343,7 @@
"Diagnostic Framework Notification");
}
}
- return notifInfo;
+ return notifInfo.clone();
}
private static long seqNumber = 0;