mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8209024
: Use SuppressWarnings on serialVersionUID fields in interfaces
Reviewed-by: bpb, rriggs, mullan
This commit is contained in:
parent
080d3bb21a
commit
4bac00436d
20 changed files with 38 additions and 18 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 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
|
||||
|
@ -109,6 +109,7 @@ public interface Key extends java.io.Serializable {
|
|||
* serialization compatibility with a previous
|
||||
* version of the class.
|
||||
*/
|
||||
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
|
||||
static final long serialVersionUID = 6603384152749567654L;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 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 PrivateKey extends Key, javax.security.auth.Destroyable {
|
|||
* The class fingerprint that is set to indicate serialization
|
||||
* compatibility with a previous version of the class.
|
||||
*/
|
||||
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
|
||||
static final long serialVersionUID = 6034044314589513430L;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 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
|
||||
|
@ -50,5 +50,6 @@ public interface PublicKey extends Key {
|
|||
* The class fingerprint that is set to indicate serialization
|
||||
* compatibility with a previous version of the class.
|
||||
*/
|
||||
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
|
||||
static final long serialVersionUID = 7187392471159151072L;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
@ -48,6 +48,7 @@ public interface DSAPrivateKey extends DSAKey, java.security.PrivateKey {
|
|||
* serialization compatibility with a previous
|
||||
* version of the class.
|
||||
*/
|
||||
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
|
||||
static final long serialVersionUID = 7776497482533790279L;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 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
|
||||
|
@ -48,6 +48,7 @@ public interface DSAPublicKey extends DSAKey, java.security.PublicKey {
|
|||
* serialization compatibility with a previous
|
||||
* version of the class.
|
||||
*/
|
||||
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
|
||||
static final long serialVersionUID = 1234526332779022332L;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 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
|
||||
|
@ -43,6 +43,7 @@ public interface ECPrivateKey extends PrivateKey, ECKey {
|
|||
* The class fingerprint that is set to indicate
|
||||
* serialization compatibility.
|
||||
*/
|
||||
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
|
||||
static final long serialVersionUID = -7896394956925609184L;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 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
|
||||
|
@ -45,6 +45,7 @@ public interface ECPublicKey extends PublicKey, ECKey {
|
|||
* The class fingerprint that is set to indicate
|
||||
* serialization compatibility.
|
||||
*/
|
||||
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
|
||||
static final long serialVersionUID = -3314988629879632826L;
|
||||
|
||||
/**
|
||||
|
|
|
@ -51,6 +51,7 @@ public interface RSAMultiPrimePrivateCrtKey extends RSAPrivateKey {
|
|||
* serialization compatibility with a previous
|
||||
* version of the type.
|
||||
*/
|
||||
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
|
||||
static final long serialVersionUID = 618058533534628008L;
|
||||
|
||||
/**
|
||||
|
|
|
@ -46,6 +46,7 @@ public interface RSAPrivateCrtKey extends RSAPrivateKey {
|
|||
* serialization compatibility with a previous
|
||||
* version of the type.
|
||||
*/
|
||||
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
|
||||
static final long serialVersionUID = -5682214253527700368L;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 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
|
||||
|
@ -45,6 +45,7 @@ public interface RSAPrivateKey extends java.security.PrivateKey, RSAKey
|
|||
* serialization compatibility with a previous
|
||||
* version of the type.
|
||||
*/
|
||||
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
|
||||
static final long serialVersionUID = 5187144804936595022L;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 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 RSAPublicKey extends java.security.PublicKey, RSAKey
|
|||
* serialization compatibility with a previous
|
||||
* version of the type.
|
||||
*/
|
||||
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
|
||||
static final long serialVersionUID = -8727434096241101194L;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 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
|
||||
|
@ -44,6 +44,7 @@ import javax.crypto.SecretKey;
|
|||
@Deprecated
|
||||
public interface TlsMasterSecret extends SecretKey {
|
||||
|
||||
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
|
||||
public static final long serialVersionUID = -461748105810469773L;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 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,6 +64,7 @@ public interface Name
|
|||
* serialization compatibility with a previous
|
||||
* version of the class.
|
||||
*/
|
||||
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
|
||||
static final long serialVersionUID = -3617482732056931635L;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 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
|
||||
|
@ -336,5 +336,6 @@ public interface Attribute extends Cloneable, java.io.Serializable {
|
|||
/**
|
||||
* Use serialVersionUID from JNDI 1.1.1 for interoperability.
|
||||
*/
|
||||
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
|
||||
static final long serialVersionUID = 8707690322213556804L;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 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
|
||||
|
@ -39,6 +39,7 @@ import java.rmi.*;
|
|||
public interface RemoteRef extends java.io.Externalizable {
|
||||
|
||||
/** indicate compatibility with JDK 1.1.x version of class. */
|
||||
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
|
||||
static final long serialVersionUID = 3632638527362204081L;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 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
|
||||
|
@ -39,6 +39,7 @@ import java.rmi.*;
|
|||
public interface ServerRef extends RemoteRef {
|
||||
|
||||
/** indicate compatibility with JDK 1.1.x version of class. */
|
||||
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
|
||||
static final long serialVersionUID = -4557750989390278438L;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue