8132209: DiagnosticCommandImpl.getNotificationInfo() may expose internal representation
authordsamersoff
Mon, 03 Aug 2015 12:18:10 +0300
changeset 35281 0759290c119a
parent 35280 c607d894f91e
child 35282 cbcd2afb6070
8132209: DiagnosticCommandImpl.getNotificationInfo() may expose internal representation Summary: DiagnosticCommandImpl.getNotificationInfo() may expose internal representation Reviewed-by: skoivu, fparain, jbachorik
jdk/src/jdk.management/share/classes/com/sun/management/internal/DiagnosticCommandImpl.java
--- 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;