8275003: Suppress warnings on non-serializable non-transient instance fields in windows mscapi

Reviewed-by: valeriep
This commit is contained in:
Joe Darcy 2021-10-19 20:53:23 +00:00
parent e63c1486dc
commit 926966be7a
2 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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;