equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2004, 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2004, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
35 * A CompositeData for MemoryUsage for the local management support. |
35 * A CompositeData for MemoryUsage for the local management support. |
36 * This class avoids the performance penalty paid to the |
36 * This class avoids the performance penalty paid to the |
37 * construction of a CompositeData use in the local case. |
37 * construction of a CompositeData use in the local case. |
38 */ |
38 */ |
39 public class MemoryUsageCompositeData extends LazyCompositeData { |
39 public class MemoryUsageCompositeData extends LazyCompositeData { |
|
40 @SuppressWarnings("serial") // Not statically typed as Serializable |
40 private final MemoryUsage usage; |
41 private final MemoryUsage usage; |
41 |
42 |
42 private MemoryUsageCompositeData(MemoryUsage u) { |
43 private MemoryUsageCompositeData(MemoryUsage u) { |
43 this.usage = u; |
44 this.usage = u; |
44 } |
45 } |