mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8231202: Suppress warnings on non-serializable non-transient instance fields in serializable classes
Reviewed-by: rriggs, chegar
This commit is contained in:
parent
fbb4093562
commit
3c9b6d8554
18 changed files with 86 additions and 6 deletions
|
@ -66,6 +66,7 @@ class Comparators {
|
|||
private static final long serialVersionUID = -7569533591570686392L;
|
||||
private final boolean nullFirst;
|
||||
// if null, non-null Ts are considered equal
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
private final Comparator<T> real;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue