8039022: Fix serial lint warnings in sun.tools.java
8039027: Fix serial lint warnings in jconsole and jstat
8039038: Fix serial lint warnings in com.sun.jmx.snmp
Reviewed-by: alanb, lancea, dfuchs
--- a/jdk/src/share/classes/com/sun/jmx/snmp/Enumerated.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/Enumerated.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -45,7 +45,7 @@
* <p><b>This API is a Sun Microsystems internal API and is subject
* to change without notice.</b></p>
*/
-
+@SuppressWarnings("serial") // JDK implementation class
abstract public class Enumerated implements Serializable {
/**
--- a/jdk/src/share/classes/com/sun/jmx/snmp/IPAcl/Host.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/IPAcl/Host.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -44,6 +44,7 @@
* The class defines an abstract representation of a host.
*
*/
+@SuppressWarnings("serial") // JDK implementation class
abstract class Host extends SimpleNode implements Serializable {
public Host(int id) {
--- a/jdk/src/share/classes/com/sun/jmx/snmp/SnmpPdu.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/SnmpPdu.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -45,6 +45,7 @@
*
* @since 1.5
*/
+@SuppressWarnings("serial") // JDK implementation class
public abstract class SnmpPdu implements SnmpDefinitions, Serializable {
/**
--- a/jdk/src/share/classes/com/sun/jmx/snmp/SnmpScopedPduPacket.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/SnmpScopedPduPacket.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -47,6 +47,7 @@
*
* @since 1.5
*/
+@SuppressWarnings("serial") // JDK implementation class
public abstract class SnmpScopedPduPacket extends SnmpPdu
implements Serializable {
/**
--- a/jdk/src/share/classes/com/sun/jmx/snmp/SnmpUnsignedInt.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/SnmpUnsignedInt.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -34,7 +34,7 @@
* <p><b>This API is a Sun Microsystems internal API and is subject
* to change without notice.</b></p>
*/
-
+@SuppressWarnings("serial") // JDK implementation class
public abstract class SnmpUnsignedInt extends SnmpInt {
/**
--- a/jdk/src/share/classes/com/sun/jmx/snmp/SnmpValue.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/SnmpValue.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -38,7 +38,7 @@
* <p><b>This API is a Sun Microsystems internal API and is subject
* to change without notice.</b></p>
*/
-
+@SuppressWarnings("serial") // JDK implementation class
public abstract class SnmpValue implements Cloneable, Serializable, SnmpDataTypeEnums {
/**
--- a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMib.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMib.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -59,6 +59,7 @@
* <p><b>This API is a Sun Microsystems internal API and is subject
* to change without notice.</b></p>
*/
+@SuppressWarnings("serial") // JDK implementation class
public abstract class SnmpMib extends SnmpMibAgent implements Serializable {
/**
--- a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibAgent.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibAgent.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -59,7 +59,7 @@
* <p><b>This API is a Sun Microsystems internal API and is subject
* to change without notice.</b></p>
*/
-
+@SuppressWarnings("serial") // JDK implementation class
public abstract class SnmpMibAgent
implements SnmpMibAgentMBean, MBeanRegistration, Serializable {
--- a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibEntry.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibEntry.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -41,7 +41,7 @@
* <p><b>This API is a Sun Microsystems internal API and is subject
* to change without notice.</b></p>
*/
-
+@SuppressWarnings("serial") // JDK implementation class
public abstract class SnmpMibEntry extends SnmpMibNode
implements Serializable {
--- a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibGroup.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibGroup.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -49,7 +49,7 @@
* <p><b>This API is a Sun Microsystems internal API and is subject
* to change without notice.</b></p>
*/
-
+@SuppressWarnings("serial") // JDK implementation class
public abstract class SnmpMibGroup extends SnmpMibOid
implements Serializable {
--- a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibNode.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibNode.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -53,7 +53,7 @@
* <p><b>This API is a Sun Microsystems internal API and is subject
* to change without notice.</b></p>
*/
-
+@SuppressWarnings("serial") // JDK implementation class
public abstract class SnmpMibNode implements Serializable {
// ---------------------------------------------------------------------
--- a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibTable.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibTable.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -84,7 +84,7 @@
* @see com.sun.jmx.snmp.agent.SnmpTableSupport
*
*/
-
+@SuppressWarnings("serial") // JDK implementation class
public abstract class SnmpMibTable extends SnmpMibNode
implements NotificationBroadcaster, Serializable {
--- a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpTableSupport.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpTableSupport.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -80,6 +80,7 @@
* @see com.sun.jmx.snmp.agent.SnmpMibTable
*
*/
+@SuppressWarnings("serial") // JDK implementation class
public abstract class SnmpTableSupport implements SnmpTableEntryFactory,
// NPCTE fix for bugId 4499265, esc 0, MR 04 sept 2001
// SnmpTableCallbackHandler {
--- a/jdk/src/share/classes/sun/management/snmp/util/SnmpListTableCache.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/sun/management/snmp/util/SnmpListTableCache.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -43,6 +43,7 @@
* <p><b>NOTE: This class is not synchronized, subclasses must implement
* the appropriate synchronization whwn needed.</b></p>
**/
+@SuppressWarnings("serial") // JDK implementation class
public abstract class SnmpListTableCache extends SnmpTableCache {
--- a/jdk/src/share/classes/sun/management/snmp/util/SnmpNamedListTableCache.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/sun/management/snmp/util/SnmpNamedListTableCache.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -49,6 +49,7 @@
* <p><b>NOTE: This class is not synchronized, subclasses must implement
* the appropriate synchronization whwn needed.</b></p>
**/
+@SuppressWarnings("serial") // JDK implementation class
public abstract class SnmpNamedListTableCache extends SnmpListTableCache {
/**
--- a/jdk/src/share/classes/sun/management/snmp/util/SnmpTableCache.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/sun/management/snmp/util/SnmpTableCache.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -45,6 +45,7 @@
* <p><b>NOTE: This class is not synchronized, subclasses must implement
* the appropriate synchronization when needed.</b></p>
**/
+@SuppressWarnings("serial") // JDK implementation class
public abstract class SnmpTableCache implements Serializable {
/**
--- a/jdk/src/share/classes/sun/tools/java/AmbiguousClass.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/sun/tools/java/AmbiguousClass.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -34,6 +34,7 @@
* they are subject to change or removal without notice.
*/
+@SuppressWarnings("serial") // JDK implementation class
public
class AmbiguousClass extends ClassNotFound {
/**
--- a/jdk/src/share/classes/sun/tools/java/AmbiguousMember.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/sun/tools/java/AmbiguousMember.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -35,6 +35,7 @@
* supported API. Code that depends on them does so at its own risk:
* they are subject to change or removal without notice.
*/
+@SuppressWarnings("serial") // JDK implementation class
public
class AmbiguousMember extends Exception {
/**
--- a/jdk/src/share/classes/sun/tools/java/ClassNotFound.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/sun/tools/java/ClassNotFound.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -33,6 +33,7 @@
* supported API. Code that depends on them does so at its own risk:
* they are subject to change or removal without notice.
*/
+@SuppressWarnings("serial") // JDK implementation class
public
class ClassNotFound extends Exception {
/**
--- a/jdk/src/share/classes/sun/tools/java/CompilerError.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/sun/tools/java/CompilerError.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -32,7 +32,7 @@
* supported API. Code that depends on them does so at its own risk:
* they are subject to change or removal without notice.
*/
-
+@SuppressWarnings("serial") // JDK implementation class
public
class CompilerError extends Error {
Throwable e;
--- a/jdk/src/share/classes/sun/tools/java/SyntaxError.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/sun/tools/java/SyntaxError.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -33,7 +33,7 @@
* supported API. Code that depends on them does so at its own risk:
* they are subject to change or removal without notice.
*/
-
+@SuppressWarnings("serial") // JDK implementation class
public
class SyntaxError extends Exception {
}
--- a/jdk/src/share/classes/sun/tools/jconsole/Tab.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/sun/tools/jconsole/Tab.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -28,6 +28,7 @@
import java.awt.*;
import javax.swing.*;
+@SuppressWarnings("serial") // JDK implementation class
public abstract class Tab extends JPanel {
private String name;
private Worker worker;
--- a/jdk/src/share/classes/sun/tools/jconsole/inspector/XOperations.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/sun/tools/jconsole/inspector/XOperations.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -39,6 +39,7 @@
import sun.tools.jconsole.JConsole;
import sun.tools.jconsole.Messages;
+@SuppressWarnings("serial") // JDK implementation class
public abstract class XOperations extends JPanel implements ActionListener {
public final static String OPERATION_INVOCATION_EVENT =
--- a/jdk/src/share/classes/sun/tools/jconsole/inspector/XTable.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/sun/tools/jconsole/inspector/XTable.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -33,6 +33,7 @@
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableCellRenderer;
+@SuppressWarnings("serial") // JDK implementation class
public abstract class XTable extends JTable {
static final int NAME_COLUMN = 0;
static final int VALUE_COLUMN = 1;
--- a/jdk/src/share/classes/sun/tools/jstat/ParserException.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/sun/tools/jstat/ParserException.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -31,6 +31,7 @@
* @author Brian Doherty
* @since 1.5
*/
+@SuppressWarnings("serial") // JDK implementation class
public class ParserException extends Exception {
public ParserException() {
--- a/jdk/src/share/classes/sun/tools/jstat/SyntaxException.java Wed Apr 02 23:23:00 2014 +0100
+++ b/jdk/src/share/classes/sun/tools/jstat/SyntaxException.java Wed Apr 02 21:38:45 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -36,6 +36,7 @@
* @author Brian Doherty
* @since 1.5
*/
+@SuppressWarnings("serial") // JDK implementation class
public class SyntaxException extends ParserException {
private String message;