Skip to content
Permalink
Browse files
8275003: Suppress warnings on non-serializable non-transient instance…
… fields in windows mscapi

Reviewed-by: valeriep
  • Loading branch information
jddarcy committed Oct 19, 2021
1 parent e63c148 commit 926966be7ad91d2b4a750583c78721b2cdb26981
Showing 2 changed files with 5 additions and 3 deletions.
@@ -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 @@ protected void finalize() throws Throwable {
}
}

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

1 comment on commit 926966b

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 926966b Oct 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.