# HG changeset patch # User clanger # Date 1519376152 -3600 # Node ID 13a3013ae0cb78ef23643b595a3c058918ccc51e # Parent 03ae177c26b016353e5ea1cab6ffd051dfa086ca 8198539: Cleanup of unused imports in java/util/jar/Attributes.java (java.base) and JdpController.java (jdk.management.agent) Reviewed-by: stuefe diff -r 03ae177c26b0 -r 13a3013ae0cb src/java.base/share/classes/java/util/jar/Attributes.java --- a/src/java.base/share/classes/java/util/jar/Attributes.java Thu Feb 22 15:49:32 2018 -0500 +++ b/src/java.base/share/classes/java/util/jar/Attributes.java Fri Feb 23 09:55:52 2018 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2018, 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 @@ -25,18 +25,16 @@ package java.util.jar; -import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; +import java.util.Collection; +import java.util.Comparator; import java.util.LinkedHashMap; +import java.util.Locale; import java.util.Map; import java.util.Set; -import java.util.Collection; -import java.util.AbstractSet; -import java.util.Iterator; -import java.util.Locale; + import sun.util.logging.PlatformLogger; -import java.util.Comparator; /** * The Attributes class maps Manifest attribute names to associated string diff -r 03ae177c26b0 -r 13a3013ae0cb src/jdk.management.agent/share/classes/sun/management/jdp/JdpController.java --- a/src/jdk.management.agent/share/classes/sun/management/jdp/JdpController.java Thu Feb 22 15:49:32 2018 -0500 +++ b/src/jdk.management.agent/share/classes/sun/management/jdp/JdpController.java Fri Feb 23 09:55:52 2018 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2018, 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 @@ -22,19 +22,17 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ + package sun.management.jdp; import java.io.IOException; -import java.net.InetAddress; -import java.net.UnknownHostException; -import java.util.UUID; - import java.lang.management.ManagementFactory; import java.lang.management.RuntimeMXBean; import java.lang.reflect.Field; import java.lang.reflect.Method; -import java.lang.UnsupportedOperationException; -import sun.management.VMManagement; +import java.net.InetAddress; +import java.net.UnknownHostException; +import java.util.UUID; /** * JdpController is responsible to create and manage a broadcast loop.