8028027: serialver should emit declaration with the 'private' modifier

Reviewed-by: darcy, mchung, alanb, chegar
This commit is contained in:
Stuart Marks 2013-11-12 16:59:51 +01:00
parent 2b13aab668
commit c1096c05ab

View File

@ -211,7 +211,7 @@ public class SerialVer extends Applet {
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;