From 0ce8b80a58efa644e2c216ccbceda954c51cc270 Mon Sep 17 00:00:00 2001 From: dsamersoff Date: Thu, 8 Dec 2016 13:50:15 +0300 Subject: [PATCH] 8132209: DiagnosticCommandImpl.getNotificationInfo() may expose internal representation Summary: DiagnosticCommandImpl.getNotificationInfo() may expose internal representation Reviewed-by: skoivu, fparain, jbachorik --- src/share/classes/sun/management/DiagnosticCommandImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/classes/sun/management/DiagnosticCommandImpl.java b/src/share/classes/sun/management/DiagnosticCommandImpl.java index eeeee9af0..faae805d4 100644 --- a/src/share/classes/sun/management/DiagnosticCommandImpl.java +++ b/src/share/classes/sun/management/DiagnosticCommandImpl.java @@ -312,7 +312,7 @@ class DiagnosticCommandImpl extends NotificationEmitterSupport "Diagnostic Framework Notification"); } } - return notifInfo; + return notifInfo.clone(); } private static long seqNumber = 0; -- GitLab