Skip to content

Commit 926966b

Browse files
committedOct 19, 2021
8275003: Suppress warnings on non-serializable non-transient instance fields in windows mscapi
Reviewed-by: valeriep
1 parent e63c148 commit 926966b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
 

‎src/jdk.crypto.mscapi/windows/classes/sun/security/mscapi/CKey.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -69,6 +69,7 @@ protected void finalize() throws Throwable {
6969
}
7070
}
7171

72+
@SuppressWarnings("serial") // Type of field is not Serializable
7273
protected final NativeHandles handles;
7374

7475
protected final int keyLength;

‎src/jdk.crypto.mscapi/windows/classes/sun/security/mscapi/CPublicKey.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* 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 {
5555
protected byte[] encoding = null;
5656

5757
public static class CECPublicKey extends CPublicKey implements ECPublicKey {
58-
58+
@SuppressWarnings("serial") // Type of field is not Serializable;
59+
// see writeReplace
5960
private ECPoint w = null;
6061
private static final long serialVersionUID = 12L;
6162

0 commit comments

Comments
 (0)
Please sign in to comment.