8232076: Suppress warnings on non-serializable non-transient instance fields java.naming

Reviewed-by: lancea
This commit is contained in:
Joe Darcy 2019-10-09 18:23:20 -07:00
parent 4091899994
commit 728644f37d
7 changed files with 15 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1999, 2019, 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
@ -51,6 +51,7 @@ public class Continuation extends ResolveResult {
/** /**
* Whether links were encountered. * Whether links were encountered.
*/ */
@SuppressWarnings("serial") // Not statically typed as Serializable
protected Object followingLink = null; protected Object followingLink = null;
/** /**
@ -71,6 +72,7 @@ public class Continuation extends ResolveResult {
* The last resolved context. Used to set the "AltNameCtx" in a * The last resolved context. Used to set the "AltNameCtx" in a
* CannotProceedException. * CannotProceedException.
*/ */
@SuppressWarnings("serial") // Not statically typed as Serializable
protected Context resolvedContext = null; protected Context resolvedContext = null;
/** /**

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1999, 2019, 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
@ -54,6 +54,7 @@ public class Binding extends NameClassPair {
* @see #getObject * @see #getObject
* @see #setObject * @see #setObject
*/ */
@SuppressWarnings("serial") // Not statically typed as Serializable
private Object boundObj; private Object boundObj;
/** /**

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1999, 2004, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1999, 2019, 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
@ -127,6 +127,7 @@ public class CannotProceedException extends NamingException {
* @see #altName * @see #altName
* @see javax.naming.spi.ObjectFactory#getObjectInstance * @see javax.naming.spi.ObjectFactory#getObjectInstance
*/ */
@SuppressWarnings("serial") // Not statically typed as Serializable
protected Context altNameCtx = null; protected Context altNameCtx = null;
/** /**

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1999, 2004, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1999, 2019, 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
@ -85,6 +85,7 @@ public class LinkException extends NamingException {
* @see #getLinkResolvedObj * @see #getLinkResolvedObj
* @see #setLinkResolvedObj * @see #setLinkResolvedObj
*/ */
@SuppressWarnings("serial") // Not statically typed as Serializable
protected Object linkResolvedObj; protected Object linkResolvedObj;
/** /**

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1999, 2019, 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
@ -79,6 +79,7 @@ public class NamingException extends Exception {
* @see #getResolvedObj * @see #getResolvedObj
* @see #setResolvedObj * @see #setResolvedObj
*/ */
@SuppressWarnings("serial") // Not statically typed as Serializable
protected Object resolvedObj; protected Object resolvedObj;
/** /**
* Contains the remaining name that has not been resolved yet. * Contains the remaining name that has not been resolved yet.

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1999, 2000, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1999, 2019, 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
@ -122,6 +122,7 @@ public class NamingEvent extends java.util.EventObject {
* Contains information about the change that generated this event. * Contains information about the change that generated this event.
* @serial * @serial
*/ */
@SuppressWarnings("serial") // Not statically typed as Serializable
protected Object changeInfo; protected Object changeInfo;
/** /**

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1999, 2004, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1999, 2019, 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
@ -50,6 +50,7 @@ public class ResolveResult implements java.io.Serializable {
* Constructors should always initialize this. * Constructors should always initialize this.
* @serial * @serial
*/ */
@SuppressWarnings("serial") // Not statically typed as Serializable
protected Object resolvedObj; protected Object resolvedObj;
/** /**
* Field containing the remaining name yet to be resolved. * Field containing the remaining name yet to be resolved.