8035453: Fix serial lint warnings in com.sun.tools and elsewhere

Reviewed-by: psandoz
This commit is contained in:
Joe Darcy 2014-02-24 22:43:45 -08:00
parent 657b9db1ba
commit da7601aeec
17 changed files with 31 additions and 15 deletions

View File

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -25,6 +25,7 @@
package com.sun.java.browser.dom; package com.sun.java.browser.dom;
@SuppressWarnings("serial") // JDK implementation class
public class DOMAccessException extends Exception public class DOMAccessException extends Exception
{ {
/** /**

View File

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -25,7 +25,7 @@
package com.sun.java.browser.dom; package com.sun.java.browser.dom;
@SuppressWarnings("serial") // JDK implementation class
public class DOMUnsupportedException extends Exception public class DOMUnsupportedException extends Exception
{ {
/** /**

View File

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -2172,6 +2172,7 @@ public class ExpressionParser implements ExpressionParserConstants {
throw generateParseException(); throw generateParseException();
} }
@SuppressWarnings("serial") // JDK implementation class
static private final class LookaheadSuccess extends java.lang.Error { } static private final class LookaheadSuccess extends java.lang.Error { }
final private LookaheadSuccess jj_ls = new LookaheadSuccess(); final private LookaheadSuccess jj_ls = new LookaheadSuccess();
private boolean jj_scan_token(int kind) { private boolean jj_scan_token(int kind) {

View File

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -36,6 +36,7 @@ package com.sun.tools.hat.internal.oql;
* OQLException is thrown if OQL execution results in error * OQLException is thrown if OQL execution results in error
* *
*/ */
@SuppressWarnings("serial") // JDK implementation class
public class OQLException extends Exception { public class OQLException extends Exception {
public OQLException(String msg) { public OQLException(String msg) {
super(msg); super(msg);

View File

@ -144,6 +144,7 @@ abstract class ConnectorImpl implements Connector {
return string; return string;
} }
@SuppressWarnings("serial") // JDK implementation class
abstract class ArgumentImpl implements Connector.Argument, Cloneable, Serializable { abstract class ArgumentImpl implements Connector.Argument, Cloneable, Serializable {
private String name; private String name;
private String label; private String label;

View File

@ -351,6 +351,7 @@ public class MethodNode extends MethodVisitor {
} }
@Override @Override
@SuppressWarnings("serial") // Anonymous class
public AnnotationVisitor visitAnnotationDefault() { public AnnotationVisitor visitAnnotationDefault() {
return new AnnotationNode(new ArrayList<Object>(0) { return new AnnotationNode(new ArrayList<Object>(0) {
@Override @Override

View File

@ -66,6 +66,7 @@ import jdk.internal.org.objectweb.asm.tree.AbstractInsnNode;
* @author Bing Ran * @author Bing Ran
* @author Eric Bruneton * @author Eric Bruneton
*/ */
@SuppressWarnings("serial") // JDK-implementation class
public class AnalyzerException extends Exception { public class AnalyzerException extends Exception {
public final AbstractInsnNode node; public final AbstractInsnNode node;

View File

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -32,6 +32,7 @@ package sun.jvmstat.monitor;
* @author Brian Doherty * @author Brian Doherty
* @since 1.5 * @since 1.5
*/ */
@SuppressWarnings("serial") // JDK implementation class
public class MonitorException extends Exception { public class MonitorException extends Exception {
/** /**

View File

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -34,6 +34,7 @@ import sun.jvmstat.monitor.MonitoredHost;
* @author Brian Doherty * @author Brian Doherty
* @since 1.5 * @since 1.5
*/ */
@SuppressWarnings("serial") // JDK implementation class
public class HostEvent extends EventObject { public class HostEvent extends EventObject {
/** /**

View File

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -35,6 +35,7 @@ import sun.jvmstat.monitor.MonitoredVm;
* @author Brian Doherty * @author Brian Doherty
* @since 1.5 * @since 1.5
*/ */
@SuppressWarnings("serial") // JDK implementation class
public class MonitorStatusChangeEvent extends VmEvent { public class MonitorStatusChangeEvent extends VmEvent {
/** /**

View File

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -34,6 +34,7 @@ import sun.jvmstat.monitor.MonitoredVm;
* @author Brian Doherty * @author Brian Doherty
* @since 1.5 * @since 1.5
*/ */
@SuppressWarnings("serial") // JDK implementation class
public class VmEvent extends EventObject { public class VmEvent extends EventObject {
/** /**

View File

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -35,6 +35,7 @@ import sun.jvmstat.monitor.MonitoredHost;
* @author Brian Doherty * @author Brian Doherty
* @since 1.5 * @since 1.5
*/ */
@SuppressWarnings("serial") // JDK implementation class
public class VmStatusChangeEvent extends HostEvent { public class VmStatusChangeEvent extends HostEvent {
/** /**

View File

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -34,6 +34,7 @@ import sun.jvmstat.monitor.MonitorException;
* @author Brian Doherty * @author Brian Doherty
* @since 1.5 * @since 1.5
*/ */
@SuppressWarnings("serial") // JDK implementation class
public class MonitorDataException extends MonitorException { public class MonitorDataException extends MonitorException {
/** /**

View File

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -34,6 +34,7 @@ import sun.jvmstat.monitor.MonitorException;
* @author Brian Doherty * @author Brian Doherty
* @since 1.5 * @since 1.5
*/ */
@SuppressWarnings("serial") // JDK implementation class
public class MonitorStructureException extends MonitorException { public class MonitorStructureException extends MonitorException {
/** /**

View File

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -34,6 +34,7 @@ import sun.jvmstat.monitor.MonitorException;
* @author Brian Doherty * @author Brian Doherty
* @since 1.5 * @since 1.5
*/ */
@SuppressWarnings("serial") // JDK implementation class
public class MonitorTypeException extends MonitorException { public class MonitorTypeException extends MonitorException {
/** /**

View File

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -35,6 +35,7 @@ import sun.jvmstat.monitor.MonitorException;
* @author Brian Doherty * @author Brian Doherty
* @since 1.5 * @since 1.5
*/ */
@SuppressWarnings("serial") // JDK implementation class
public class MonitorVersionException extends MonitorException { public class MonitorVersionException extends MonitorException {
/** /**

View File

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -36,6 +36,7 @@ import java.util.regex.*;
* @author Brian Doherty * @author Brian Doherty
* @since 1.5 * @since 1.5
*/ */
@SuppressWarnings("serial") // JDK implementation class
public class SyntaxException extends Exception { public class SyntaxException extends Exception {
int lineno; int lineno;