< prev index next >

jdk/src/jdk.management/share/classes/com/sun/management/internal/GcInfoBuilder.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2014, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2015, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 20,43 **** * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! package sun.management; import java.lang.management.GarbageCollectorMXBean; import java.lang.management.MemoryUsage; import javax.management.openmbean.OpenType; import javax.management.openmbean.SimpleType; - import javax.management.openmbean.TabularType; - import javax.management.openmbean.TabularData; - import javax.management.openmbean.TabularDataSupport; import javax.management.openmbean.CompositeType; - import javax.management.openmbean.CompositeData; - import javax.management.openmbean.CompositeDataSupport; import javax.management.openmbean.OpenDataException; import com.sun.management.GcInfo; /** * Helper class to build composite data. */ public class GcInfoBuilder { --- 20,39 ---- * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! package com.sun.management.internal; import java.lang.management.GarbageCollectorMXBean; import java.lang.management.MemoryUsage; import javax.management.openmbean.OpenType; import javax.management.openmbean.SimpleType; import javax.management.openmbean.CompositeType; import javax.management.openmbean.OpenDataException; import com.sun.management.GcInfo; + import sun.management.Util; /** * Helper class to build composite data. */ public class GcInfoBuilder {
*** 162,172 **** allItemNames, allItemDescs, allItemTypes); } catch (OpenDataException e) { // shouldn't reach here ! throw Util.newException(e); } gcInfoCompositeType = gict; return gcInfoCompositeType; } --- 158,168 ---- allItemNames, allItemDescs, allItemTypes); } catch (OpenDataException e) { // shouldn't reach here ! throw new RuntimeException(e); } gcInfoCompositeType = gict; return gcInfoCompositeType; }
< prev index next >