8231546: Suppress warnings on non-serializable instance fields in java.prefs module
authordarcy
Thu, 26 Sep 2019 12:13:57 -0700
changeset 58363 cf7c6f013d6d
parent 58362 628c12967b02
child 58364 2c87d191056c
8231546: Suppress warnings on non-serializable instance fields in java.prefs module Reviewed-by: rriggs
src/java.prefs/share/classes/java/util/prefs/NodeChangeEvent.java
--- a/src/java.prefs/share/classes/java/util/prefs/NodeChangeEvent.java	Thu Sep 26 11:10:19 2019 -0400
+++ b/src/java.prefs/share/classes/java/util/prefs/NodeChangeEvent.java	Thu Sep 26 12:13:57 2019 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
@@ -49,7 +49,7 @@
      *
      * @serial
      */
-    private Preferences child;
+    private transient Preferences child;
 
     /**
      * Constructs a new {@code NodeChangeEvent} instance.