changeset 13511:2a671e5803a1

8132209: DiagnosticCommandImpl.getNotificationInfo() may expose internal representation Summary: DiagnosticCommandImpl.getNotificationInfo() may expose internal representation Reviewed-by: skoivu, fparain, jbachorik
author dsamersoff
date Mon, 03 Aug 2015 12:18:10 +0300
parents 7abc461969c3
children a1eb142710f9
files src/jdk.management/share/classes/com/sun/management/internal/DiagnosticCommandImpl.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.management/share/classes/com/sun/management/internal/DiagnosticCommandImpl.java	Wed Jul 29 13:42:56 2015 +0100
+++ b/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;