8232442: Suppress warnings on non-serializable non-transient instance fields in java.management.*

Reviewed-by: rriggs, mchung
This commit is contained in:
Joe Darcy 2019-10-23 13:01:40 -07:00
parent 36ac846d35
commit d8240afe42
24 changed files with 62 additions and 25 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2019, 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
@ -40,6 +40,7 @@ import javax.management.openmbean.OpenType;
* construction of a CompositeData use in the local case.
*/
public class MonitorInfoCompositeData extends LazyCompositeData {
@SuppressWarnings("serial") // Not statically typed as Serializable
private final MonitorInfo lock;
private MonitorInfoCompositeData(MonitorInfo mi) {