8035453: Fix serial lint warnings in com.sun.tools and elsewhere
Reviewed-by: psandoz
--- a/jdk/src/share/classes/com/sun/java/browser/dom/DOMAccessException.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/com/sun/java/browser/dom/DOMAccessException.java Mon Feb 24 22:43:45 2014 -0800
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 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
@@ -25,6 +25,7 @@
package com.sun.java.browser.dom;
+@SuppressWarnings("serial") // JDK implementation class
public class DOMAccessException extends Exception
{
/**
--- a/jdk/src/share/classes/com/sun/java/browser/dom/DOMUnsupportedException.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/com/sun/java/browser/dom/DOMUnsupportedException.java Mon Feb 24 22:43:45 2014 -0800
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 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
@@ -25,7 +25,7 @@
package com.sun.java.browser.dom;
-
+@SuppressWarnings("serial") // JDK implementation class
public class DOMUnsupportedException extends Exception
{
/**
--- a/jdk/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java Mon Feb 24 22:43:45 2014 -0800
@@ -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
@@ -2172,6 +2172,7 @@
throw generateParseException();
}
+ @SuppressWarnings("serial") // JDK implementation class
static private final class LookaheadSuccess extends java.lang.Error { }
final private LookaheadSuccess jj_ls = new LookaheadSuccess();
private boolean jj_scan_token(int kind) {
--- a/jdk/src/share/classes/com/sun/tools/hat/internal/oql/OQLException.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/com/sun/tools/hat/internal/oql/OQLException.java Mon Feb 24 22:43:45 2014 -0800
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2008, 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
@@ -36,6 +36,7 @@
* OQLException is thrown if OQL execution results in error
*
*/
+@SuppressWarnings("serial") // JDK implementation class
public class OQLException extends Exception {
public OQLException(String msg) {
super(msg);
--- a/jdk/src/share/classes/com/sun/tools/jdi/ConnectorImpl.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/com/sun/tools/jdi/ConnectorImpl.java Mon Feb 24 22:43:45 2014 -0800
@@ -144,6 +144,7 @@
return string;
}
+ @SuppressWarnings("serial") // JDK implementation class
abstract class ArgumentImpl implements Connector.Argument, Cloneable, Serializable {
private String name;
private String label;
--- a/jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/MethodNode.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/MethodNode.java Mon Feb 24 22:43:45 2014 -0800
@@ -351,6 +351,7 @@
}
@Override
+ @SuppressWarnings("serial") // Anonymous class
public AnnotationVisitor visitAnnotationDefault() {
return new AnnotationNode(new ArrayList<Object>(0) {
@Override
--- a/jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/analysis/AnalyzerException.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/analysis/AnalyzerException.java Mon Feb 24 22:43:45 2014 -0800
@@ -66,6 +66,7 @@
* @author Bing Ran
* @author Eric Bruneton
*/
+@SuppressWarnings("serial") // JDK-implementation class
public class AnalyzerException extends Exception {
public final AbstractInsnNode node;
--- a/jdk/src/share/classes/sun/jvmstat/monitor/MonitorException.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/sun/jvmstat/monitor/MonitorException.java Mon Feb 24 22:43:45 2014 -0800
@@ -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
@@ -32,6 +32,7 @@
* @author Brian Doherty
* @since 1.5
*/
+@SuppressWarnings("serial") // JDK implementation class
public class MonitorException extends Exception {
/**
--- a/jdk/src/share/classes/sun/jvmstat/monitor/event/HostEvent.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/sun/jvmstat/monitor/event/HostEvent.java Mon Feb 24 22:43:45 2014 -0800
@@ -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
@@ -34,6 +34,7 @@
* @author Brian Doherty
* @since 1.5
*/
+@SuppressWarnings("serial") // JDK implementation class
public class HostEvent extends EventObject {
/**
--- a/jdk/src/share/classes/sun/jvmstat/monitor/event/MonitorStatusChangeEvent.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/sun/jvmstat/monitor/event/MonitorStatusChangeEvent.java Mon Feb 24 22:43:45 2014 -0800
@@ -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
@@ -35,6 +35,7 @@
* @author Brian Doherty
* @since 1.5
*/
+@SuppressWarnings("serial") // JDK implementation class
public class MonitorStatusChangeEvent extends VmEvent {
/**
--- a/jdk/src/share/classes/sun/jvmstat/monitor/event/VmEvent.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/sun/jvmstat/monitor/event/VmEvent.java Mon Feb 24 22:43:45 2014 -0800
@@ -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
@@ -34,6 +34,7 @@
* @author Brian Doherty
* @since 1.5
*/
+@SuppressWarnings("serial") // JDK implementation class
public class VmEvent extends EventObject {
/**
--- a/jdk/src/share/classes/sun/jvmstat/monitor/event/VmStatusChangeEvent.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/sun/jvmstat/monitor/event/VmStatusChangeEvent.java Mon Feb 24 22:43:45 2014 -0800
@@ -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
@@ -35,6 +35,7 @@
* @author Brian Doherty
* @since 1.5
*/
+@SuppressWarnings("serial") // JDK implementation class
public class VmStatusChangeEvent extends HostEvent {
/**
--- a/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/MonitorDataException.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/MonitorDataException.java Mon Feb 24 22:43:45 2014 -0800
@@ -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
@@ -34,6 +34,7 @@
* @author Brian Doherty
* @since 1.5
*/
+@SuppressWarnings("serial") // JDK implementation class
public class MonitorDataException extends MonitorException {
/**
--- a/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/MonitorStructureException.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/MonitorStructureException.java Mon Feb 24 22:43:45 2014 -0800
@@ -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
@@ -34,6 +34,7 @@
* @author Brian Doherty
* @since 1.5
*/
+@SuppressWarnings("serial") // JDK implementation class
public class MonitorStructureException extends MonitorException {
/**
--- a/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/MonitorTypeException.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/MonitorTypeException.java Mon Feb 24 22:43:45 2014 -0800
@@ -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
@@ -34,6 +34,7 @@
* @author Brian Doherty
* @since 1.5
*/
+@SuppressWarnings("serial") // JDK implementation class
public class MonitorTypeException extends MonitorException {
/**
--- a/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/MonitorVersionException.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/MonitorVersionException.java Mon Feb 24 22:43:45 2014 -0800
@@ -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
@@ -35,6 +35,7 @@
* @author Brian Doherty
* @since 1.5
*/
+@SuppressWarnings("serial") // JDK implementation class
public class MonitorVersionException extends MonitorException {
/**
--- a/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/SyntaxException.java Thu Dec 26 12:04:16 2013 -0800
+++ b/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/SyntaxException.java Mon Feb 24 22:43:45 2014 -0800
@@ -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 Exception {
int lineno;