8028027: serialver should emit declaration with the 'private' modifier
authorsmarks
Tue, 12 Nov 2013 16:59:51 +0100
changeset 21651 07756e24916a
parent 21650 390b5df3fcaf
child 21652 e935e26bd5ec
8028027: serialver should emit declaration with the 'private' modifier Reviewed-by: darcy, mchung, alanb, chegar
jdk/src/share/classes/sun/tools/serialver/SerialVer.java
--- a/jdk/src/share/classes/sun/tools/serialver/SerialVer.java	Tue Nov 12 14:52:42 2013 +0100
+++ b/jdk/src/share/classes/sun/tools/serialver/SerialVer.java	Tue Nov 12 16:59:51 2013 +0100
@@ -211,7 +211,7 @@
         Class<?> cl = Class.forName(classname, false, loader);
         ObjectStreamClass desc = ObjectStreamClass.lookup(cl);
         if (desc != null) {
-            return "    static final long serialVersionUID = " +
+            return "    private static final long serialVersionUID = " +
                 desc.getSerialVersionUID() + "L;";
         } else {
             return null;