File tree Expand file tree Collapse file tree 5 files changed +31
-12
lines changed
src/java.datatransfer/share/classes/java/awt/datatransfer Expand file tree Collapse file tree 5 files changed +31
-12
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 1996, 2017 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 1996, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
3535import java .io .ObjectOutput ;
3636import java .io .OptionalDataException ;
3737import java .io .Reader ;
38+ import java .io .Serial ;
3839import java .io .StringReader ;
3940import java .io .UnsupportedEncodingException ;
4041import java .nio .ByteBuffer ;
111112 */
112113public class DataFlavor implements Externalizable , Cloneable {
113114
115+ /**
116+ * Use serialVersionUID from JDK 1.2 for interoperability.
117+ */
118+ @ Serial
114119 private static final long serialVersionUID = 8367026044764648243L ;
115120 private static final Class <InputStream > ioInputStreamClass = InputStream .class ;
116121
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2003, 2017 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2003, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
2525
2626package java .awt .datatransfer ;
2727
28+ import java .io .Serial ;
2829import java .util .EventObject ;
2930
3031/**
3738 */
3839public class FlavorEvent extends EventObject {
3940
41+ /**
42+ * Use serialVersionUID from JDK 1.5 for interoperability.
43+ */
44+ @ Serial
4045 private static final long serialVersionUID = -5842664112252414548L ;
4146
4247 /**
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 1997, 2019 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 1997, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
2929import java .io .IOException ;
3030import java .io .ObjectInput ;
3131import java .io .ObjectOutput ;
32+ import java .io .Serial ;
3233import java .util .Locale ;
3334
3435/**
4142 */
4243class MimeType implements Externalizable , Cloneable {
4344
44- /*
45- * serialization support
45+ /**
46+ * Use serialVersionUID from JDK 1.2 for interoperability.
4647 */
47-
48- static final long serialVersionUID = -6568722458793895906L ;
48+ @ Serial
49+ private static final long serialVersionUID = -6568722458793895906L ;
4950
5051 /**
5152 * Constructor for externalization; this constructor should not be called
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 1997, 2017 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 1997, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
2525
2626package java .awt .datatransfer ;
2727
28+ import java .io .Serial ;
29+
2830/**
2931 * A class to encapsulate MimeType parsing related exceptions.
3032 *
3335 */
3436public class MimeTypeParseException extends Exception {
3537
36- // use serialVersionUID from JDK 1.2.2 for interoperability
38+ /**
39+ * Use serialVersionUID from JDK 1.2.2 for interoperability.
40+ */
41+ @ Serial
3742 private static final long serialVersionUID = -5604407764691570741L ;
3843
3944 /**
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 1996, 2017 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 1996, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
2525
2626package java .awt .datatransfer ;
2727
28+ import java .io .Serial ;
29+
2830/**
2931 * Signals that the requested data is not supported in this flavor.
3032 *
3436 */
3537public class UnsupportedFlavorException extends Exception {
3638
37- /*
38- * JDK 1.1 serialVersionUID
39+ /**
40+ * Use serialVersionUID from JDK 1.1 for interoperability.
3941 */
42+ @ Serial
4043 private static final long serialVersionUID = 5383814944251665601L ;
4144
4245 /**
You can’t perform that action at this time.
0 commit comments