This repository was archived by the owner on Aug 27, 2022. It is now read-only.
File tree 5 files changed +31
-12
lines changed
src/java.datatransfer/share/classes/java/awt/datatransfer
5 files changed +31
-12
lines changed Original file line number Diff line number Diff line change 1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
35
35
import java .io .ObjectOutput ;
36
36
import java .io .OptionalDataException ;
37
37
import java .io .Reader ;
38
+ import java .io .Serial ;
38
39
import java .io .StringReader ;
39
40
import java .io .UnsupportedEncodingException ;
40
41
import java .nio .ByteBuffer ;
111
112
*/
112
113
public class DataFlavor implements Externalizable , Cloneable {
113
114
115
+ /**
116
+ * Use serialVersionUID from JDK 1.2 for interoperability.
117
+ */
118
+ @ Serial
114
119
private static final long serialVersionUID = 8367026044764648243L ;
115
120
private static final Class <InputStream > ioInputStreamClass = InputStream .class ;
116
121
Original file line number Diff line number Diff line change 1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
25
25
26
26
package java .awt .datatransfer ;
27
27
28
+ import java .io .Serial ;
28
29
import java .util .EventObject ;
29
30
30
31
/**
37
38
*/
38
39
public class FlavorEvent extends EventObject {
39
40
41
+ /**
42
+ * Use serialVersionUID from JDK 1.5 for interoperability.
43
+ */
44
+ @ Serial
40
45
private static final long serialVersionUID = -5842664112252414548L ;
41
46
42
47
/**
Original file line number Diff line number Diff line change 1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
29
29
import java .io .IOException ;
30
30
import java .io .ObjectInput ;
31
31
import java .io .ObjectOutput ;
32
+ import java .io .Serial ;
32
33
import java .util .Locale ;
33
34
34
35
/**
41
42
*/
42
43
class MimeType implements Externalizable , Cloneable {
43
44
44
- /*
45
- * serialization support
45
+ /**
46
+ * Use serialVersionUID from JDK 1.2 for interoperability.
46
47
*/
47
-
48
- static final long serialVersionUID = -6568722458793895906L ;
48
+ @ Serial
49
+ private static final long serialVersionUID = -6568722458793895906L ;
49
50
50
51
/**
51
52
* Constructor for externalization; this constructor should not be called
Original file line number Diff line number Diff line change 1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
25
25
26
26
package java .awt .datatransfer ;
27
27
28
+ import java .io .Serial ;
29
+
28
30
/**
29
31
* A class to encapsulate MimeType parsing related exceptions.
30
32
*
33
35
*/
34
36
public class MimeTypeParseException extends Exception {
35
37
36
- // use serialVersionUID from JDK 1.2.2 for interoperability
38
+ /**
39
+ * Use serialVersionUID from JDK 1.2.2 for interoperability.
40
+ */
41
+ @ Serial
37
42
private static final long serialVersionUID = -5604407764691570741L ;
38
43
39
44
/**
Original file line number Diff line number Diff line change 1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
25
25
26
26
package java .awt .datatransfer ;
27
27
28
+ import java .io .Serial ;
29
+
28
30
/**
29
31
* Signals that the requested data is not supported in this flavor.
30
32
*
34
36
*/
35
37
public class UnsupportedFlavorException extends Exception {
36
38
37
- /*
38
- * JDK 1.1 serialVersionUID
39
+ /**
40
+ * Use serialVersionUID from JDK 1.1 for interoperability.
39
41
*/
42
+ @ Serial
40
43
private static final long serialVersionUID = 5383814944251665601L ;
41
44
42
45
/**
You can’t perform that action at this time.
0 commit comments