8275003: Suppress warnings on non-serializable non-transient instance fields in windows mscapi
Reviewed-by: valeriep
This commit is contained in:
parent
e63c1486dc
commit
926966be7a
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2021, 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
|
||||
@ -69,6 +69,7 @@ abstract class CKey implements Key, Length {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Type of field is not Serializable
|
||||
protected final NativeHandles handles;
|
||||
|
||||
protected final int keyLength;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2021, 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
|
||||
@ -55,7 +55,8 @@ public abstract class CPublicKey extends CKey implements PublicKey {
|
||||
protected byte[] encoding = null;
|
||||
|
||||
public static class CECPublicKey extends CPublicKey implements ECPublicKey {
|
||||
|
||||
@SuppressWarnings("serial") // Type of field is not Serializable;
|
||||
// see writeReplace
|
||||
private ECPoint w = null;
|
||||
private static final long serialVersionUID = 12L;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user