changeset 1807:462d505bcb00

6895875: Missing serialVersionUID in sun.management classes Summary: Added serialVersionUID to fix warning errors Reviewed-by: alanb
author mchung
date Wed, 28 Oct 2009 11:18:01 -0700
parents e07d1d393220
children 4f8f07be9e7e
files src/share/classes/sun/management/AgentConfigurationError.java src/share/classes/sun/management/GcInfoCompositeData.java src/share/classes/sun/management/LazyCompositeData.java src/share/classes/sun/management/MappedMXBeanType.java src/share/classes/sun/management/MemoryNotifInfoCompositeData.java src/share/classes/sun/management/MemoryUsageCompositeData.java src/share/classes/sun/management/MonitorInfoCompositeData.java src/share/classes/sun/management/StackTraceElementCompositeData.java src/share/classes/sun/management/ThreadInfoCompositeData.java src/share/classes/sun/management/VMOptionCompositeData.java src/share/classes/sun/management/counter/perf/ByteArrayCounterSnapshot.java src/share/classes/sun/management/counter/perf/InstrumentationException.java src/share/classes/sun/management/counter/perf/LongArrayCounterSnapshot.java src/share/classes/sun/management/counter/perf/LongCounterSnapshot.java src/share/classes/sun/management/counter/perf/PerfByteArrayCounter.java src/share/classes/sun/management/counter/perf/PerfLongArrayCounter.java src/share/classes/sun/management/counter/perf/PerfLongCounter.java src/share/classes/sun/management/counter/perf/PerfStringCounter.java src/share/classes/sun/management/counter/perf/StringCounterSnapshot.java src/share/classes/sun/management/jmxremote/SingleEntryRegistry.java
diffstat 20 files changed, 36 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/management/AgentConfigurationError.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/AgentConfigurationError.java	Wed Oct 28 11:18:01 2009 -0700
@@ -146,4 +146,6 @@
     public String[] getParams() {
         return params;
     }
+
+    private static final long serialVersionUID = 1211605593516195475L;
 }
--- a/src/share/classes/sun/management/GcInfoCompositeData.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/GcInfoCompositeData.java	Wed Oct 28 11:18:01 2009 -0700
@@ -248,4 +248,5 @@
         return baseGcInfoCompositeType;
     }
 
+    private static final long serialVersionUID = -5716428894085882742L;
 }
--- a/src/share/classes/sun/management/LazyCompositeData.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/LazyCompositeData.java	Wed Oct 28 11:18:01 2009 -0700
@@ -192,4 +192,6 @@
 
         return isTypeMatched(type1.getRowType(), type2.getRowType());
     }
+
+    private static final long serialVersionUID = -2190411934472666714L;
 }
--- a/src/share/classes/sun/management/MappedMXBeanType.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/MappedMXBeanType.java	Wed Oct 28 11:18:01 2009 -0700
@@ -777,6 +777,7 @@
         public boolean isValue(Object o) {
             return false;
         }
+        private static final long serialVersionUID = -3413063475064374490L;
     }
     private static final OpenType inProgress;
     static {
--- a/src/share/classes/sun/management/MemoryNotifInfoCompositeData.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/MemoryNotifInfoCompositeData.java	Wed Oct 28 11:18:01 2009 -0700
@@ -127,4 +127,5 @@
         }
     }
 
+    private static final long serialVersionUID = -1805123446483771291L;
 }
--- a/src/share/classes/sun/management/MemoryUsageCompositeData.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/MemoryUsageCompositeData.java	Wed Oct 28 11:18:01 2009 -0700
@@ -126,4 +126,6 @@
                 "Unexpected composite type for MemoryUsage");
         }
     }
+
+    private static final long serialVersionUID = -8504291541083874143L;
 }
--- a/src/share/classes/sun/management/MonitorInfoCompositeData.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/MonitorInfoCompositeData.java	Wed Oct 28 11:18:01 2009 -0700
@@ -143,4 +143,6 @@
                 "Unexpected composite type for MonitorInfo");
         }
     }
+
+    private static final long serialVersionUID = -5825215591822908529L;
 }
--- a/src/share/classes/sun/management/StackTraceElementCompositeData.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/StackTraceElementCompositeData.java	Wed Oct 28 11:18:01 2009 -0700
@@ -120,4 +120,6 @@
                 "Unexpected composite type for StackTraceElement");
         }
     }
+
+    private static final long serialVersionUID = -2704607706598396827L;
 }
--- a/src/share/classes/sun/management/ThreadInfoCompositeData.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/ThreadInfoCompositeData.java	Wed Oct 28 11:18:01 2009 -0700
@@ -410,4 +410,6 @@
 
         }
     }
+
+    private static final long serialVersionUID = 2464378539119753175L;
 }
--- a/src/share/classes/sun/management/VMOptionCompositeData.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/VMOptionCompositeData.java	Wed Oct 28 11:18:01 2009 -0700
@@ -128,4 +128,6 @@
                 "Unexpected composite type for VMOption");
         }
     }
+
+    private static final long serialVersionUID = -2395573975093578470L;
 }
--- a/src/share/classes/sun/management/counter/perf/ByteArrayCounterSnapshot.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/counter/perf/ByteArrayCounterSnapshot.java	Wed Oct 28 11:18:01 2009 -0700
@@ -53,4 +53,6 @@
     public byte byteAt(int index) {
         return value[index];
     }
+
+    private static final long serialVersionUID = 1444793459838438979L;
 }
--- a/src/share/classes/sun/management/counter/perf/InstrumentationException.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/counter/perf/InstrumentationException.java	Wed Oct 28 11:18:01 2009 -0700
@@ -42,4 +42,6 @@
      public InstrumentationException(String message) {
          super(message);
      }
+
+     private static final long serialVersionUID = 8060117844393922797L;
 }
--- a/src/share/classes/sun/management/counter/perf/LongArrayCounterSnapshot.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/counter/perf/LongArrayCounterSnapshot.java	Wed Oct 28 11:18:01 2009 -0700
@@ -53,4 +53,6 @@
     public long longAt(int index) {
         return value[index];
     }
+
+    private static final long serialVersionUID = 3585870271405924292L;
 }
--- a/src/share/classes/sun/management/counter/perf/LongCounterSnapshot.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/counter/perf/LongCounterSnapshot.java	Wed Oct 28 11:18:01 2009 -0700
@@ -52,4 +52,6 @@
     public long longValue() {
         return value;
     }
+
+    private static final long serialVersionUID = 2054263861474565758L;
 }
--- a/src/share/classes/sun/management/counter/perf/PerfByteArrayCounter.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/counter/perf/PerfByteArrayCounter.java	Wed Oct 28 11:18:01 2009 -0700
@@ -88,4 +88,6 @@
                                            getVectorLength(),
                                            byteArrayValue());
     }
+
+    private static final long serialVersionUID = 2545474036937279921L;
 }
--- a/src/share/classes/sun/management/counter/perf/PerfLongArrayCounter.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/counter/perf/PerfLongArrayCounter.java	Wed Oct 28 11:18:01 2009 -0700
@@ -80,4 +80,6 @@
                                             getVectorLength(),
                                             longArrayValue());
     }
+
+    private static final long serialVersionUID = -2733617913045487126L;
 }
--- a/src/share/classes/sun/management/counter/perf/PerfLongCounter.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/counter/perf/PerfLongCounter.java	Wed Oct 28 11:18:01 2009 -0700
@@ -62,4 +62,6 @@
                                        getFlags(),
                                        longValue());
     }
+
+    private static final long serialVersionUID = 857711729279242948L;
 }
--- a/src/share/classes/sun/management/counter/perf/PerfStringCounter.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/counter/perf/PerfStringCounter.java	Wed Oct 28 11:18:01 2009 -0700
@@ -86,4 +86,5 @@
                                          stringValue());
     }
 
+    private static final long serialVersionUID = 6802913433363692452L;
 }
--- a/src/share/classes/sun/management/counter/perf/StringCounterSnapshot.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/counter/perf/StringCounterSnapshot.java	Wed Oct 28 11:18:01 2009 -0700
@@ -49,4 +49,6 @@
     public String stringValue() {
         return value;
     }
+
+    private static final long serialVersionUID = 1132921539085572034L;
 }
--- a/src/share/classes/sun/management/jmxremote/SingleEntryRegistry.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/src/share/classes/sun/management/jmxremote/SingleEntryRegistry.java	Wed Oct 28 11:18:01 2009 -0700
@@ -86,4 +86,6 @@
 
     private final String name;
     private final Remote object;
+
+    private static final long serialVersionUID = -4897238949499730950L;
 }