8209024: Use SuppressWarnings on serialVersionUID fields in interfaces

Reviewed-by: bpb, rriggs, mullan
This commit is contained in:
Joe Darcy 2018-08-06 14:29:22 -07:00
parent 080d3bb21a
commit 4bac00436d
20 changed files with 38 additions and 18 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2018, 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
@ -64,5 +64,6 @@ public interface SecretKey extends
* The class fingerprint that is set to indicate serialization
* compatibility since J2SE 1.4.
*/
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
static final long serialVersionUID = -4795878709595146952L;
}

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2018, 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
@ -42,6 +42,7 @@ public interface DHPrivateKey extends DHKey, java.security.PrivateKey {
* The class fingerprint that is set to indicate serialization
* compatibility since J2SE 1.4.
*/
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
static final long serialVersionUID = 2211791113380396553L;
/**

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2018, 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
@ -42,6 +42,7 @@ public interface DHPublicKey extends DHKey, java.security.PublicKey {
* The class fingerprint that is set to indicate serialization
* compatibility since J2SE 1.4.
*/
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
static final long serialVersionUID = -6628103563352519193L;
/**

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2007, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2018, 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
@ -42,6 +42,7 @@ public interface PBEKey extends javax.crypto.SecretKey {
* The class fingerprint that is set to indicate serialization
* compatibility since J2SE 1.4.
*/
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
static final long serialVersionUID = -1430015993304333921L;
/**