8232078: Suppress warnings on non-serializable non-transient instance fields in java.datatransfer
authordarcy
Wed, 09 Oct 2019 19:38:11 -0700
changeset 58532 b4f2e13d20ea
parent 58531 9b40d05c9f66
child 58533 46b0b7fe255c
8232078: Suppress warnings on non-serializable non-transient instance fields in java.datatransfer Reviewed-by: serb
src/java.datatransfer/share/classes/java/awt/datatransfer/MimeType.java
--- a/src/java.datatransfer/share/classes/java/awt/datatransfer/MimeType.java	Wed Oct 09 18:23:20 2019 -0700
+++ b/src/java.datatransfer/share/classes/java/awt/datatransfer/MimeType.java	Wed Oct 09 19:38:11 2019 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -346,9 +346,9 @@
         return newObj;
     }
 
-    private String    primaryType;
-    private String    subType;
-    private MimeTypeParameterList parameters;
+    private transient String    primaryType;
+    private transient String    subType;
+    private transient MimeTypeParameterList parameters;
 
     //    below here be scary parsing related things