6895875: Missing serialVersionUID in sun.management classes
authormchung
Wed, 28 Oct 2009 11:18:01 -0700
changeset 4173 d01972926813
parent 4172 bceea7bc12b7
child 4174 0bff70ba7356
6895875: Missing serialVersionUID in sun.management classes Summary: Added serialVersionUID to fix warning errors Reviewed-by: alanb
jdk/src/share/classes/sun/management/AgentConfigurationError.java
jdk/src/share/classes/sun/management/GcInfoCompositeData.java
jdk/src/share/classes/sun/management/LazyCompositeData.java
jdk/src/share/classes/sun/management/MappedMXBeanType.java
jdk/src/share/classes/sun/management/MemoryNotifInfoCompositeData.java
jdk/src/share/classes/sun/management/MemoryUsageCompositeData.java
jdk/src/share/classes/sun/management/MonitorInfoCompositeData.java
jdk/src/share/classes/sun/management/StackTraceElementCompositeData.java
jdk/src/share/classes/sun/management/ThreadInfoCompositeData.java
jdk/src/share/classes/sun/management/VMOptionCompositeData.java
jdk/src/share/classes/sun/management/counter/perf/ByteArrayCounterSnapshot.java
jdk/src/share/classes/sun/management/counter/perf/InstrumentationException.java
jdk/src/share/classes/sun/management/counter/perf/LongArrayCounterSnapshot.java
jdk/src/share/classes/sun/management/counter/perf/LongCounterSnapshot.java
jdk/src/share/classes/sun/management/counter/perf/PerfByteArrayCounter.java
jdk/src/share/classes/sun/management/counter/perf/PerfLongArrayCounter.java
jdk/src/share/classes/sun/management/counter/perf/PerfLongCounter.java
jdk/src/share/classes/sun/management/counter/perf/PerfStringCounter.java
jdk/src/share/classes/sun/management/counter/perf/StringCounterSnapshot.java
jdk/src/share/classes/sun/management/jmxremote/SingleEntryRegistry.java
--- a/jdk/src/share/classes/sun/management/AgentConfigurationError.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/GcInfoCompositeData.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/LazyCompositeData.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/MappedMXBeanType.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/MemoryNotifInfoCompositeData.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/MemoryUsageCompositeData.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/MonitorInfoCompositeData.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/StackTraceElementCompositeData.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/ThreadInfoCompositeData.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/VMOptionCompositeData.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/counter/perf/ByteArrayCounterSnapshot.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/counter/perf/InstrumentationException.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/counter/perf/LongArrayCounterSnapshot.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/counter/perf/LongCounterSnapshot.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/counter/perf/PerfByteArrayCounter.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/counter/perf/PerfLongArrayCounter.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/counter/perf/PerfLongCounter.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/counter/perf/PerfStringCounter.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/counter/perf/StringCounterSnapshot.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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/jdk/src/share/classes/sun/management/jmxremote/SingleEntryRegistry.java	Tue Oct 27 16:32:23 2009 -0700
+++ b/jdk/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;
 }