8232448: Suppress warnings on non-serializable non-transient instance fields in jdk.jdi
authordarcy
Thu, 17 Oct 2019 09:38:32 -0700
changeset 58673 06cc25fe0ca3
parent 58669 931ec3339786
child 58674 42a3a8941418
8232448: Suppress warnings on non-serializable non-transient instance fields in jdk.jdi Reviewed-by: sspitsyn
src/jdk.jdi/share/classes/com/sun/jdi/InvocationException.java
src/jdk.jdi/share/classes/com/sun/jdi/connect/IllegalConnectorArgumentsException.java
src/jdk.jdi/share/classes/com/sun/jdi/connect/VMStartException.java
--- a/src/jdk.jdi/share/classes/com/sun/jdi/InvocationException.java	Thu Oct 17 14:20:26 2019 +0200
+++ b/src/jdk.jdi/share/classes/com/sun/jdi/InvocationException.java	Thu Oct 17 09:38:32 2019 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2019, 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 @@
 
     private static final long serialVersionUID = 6066780907971918568L;
 
+    @SuppressWarnings("serial") // Not statically typed as Serializable
     ObjectReference exception;
 
     public InvocationException(ObjectReference exception) {
--- a/src/jdk.jdi/share/classes/com/sun/jdi/connect/IllegalConnectorArgumentsException.java	Thu Oct 17 14:20:26 2019 +0200
+++ b/src/jdk.jdi/share/classes/com/sun/jdi/connect/IllegalConnectorArgumentsException.java	Thu Oct 17 09:38:32 2019 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2019, 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
@@ -40,6 +40,7 @@
 
     private static final long serialVersionUID = -3042212603611350941L;
 
+    @SuppressWarnings("serial") // Conditionally serializable
     List<String> names;
 
     /**
--- a/src/jdk.jdi/share/classes/com/sun/jdi/connect/VMStartException.java	Thu Oct 17 14:20:26 2019 +0200
+++ b/src/jdk.jdi/share/classes/com/sun/jdi/connect/VMStartException.java	Thu Oct 17 09:38:32 2019 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2019, 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,6 +38,7 @@
 
     private static final long serialVersionUID = 6408644824640801020L;
 
+    @SuppressWarnings("serial") // Not statically typed as Serializable
     Process process;
 
     public VMStartException(Process process) {