8198539: Cleanup of unused imports in java/util/jar/Attributes.java (java.base) and JdpController.java (jdk.management.agent)
authorclanger
Fri, 23 Feb 2018 09:55:52 +0100
changeset 48936 13a3013ae0cb
parent 48935 03ae177c26b0
child 48938 b2d5bf3a61c4
8198539: Cleanup of unused imports in java/util/jar/Attributes.java (java.base) and JdpController.java (jdk.management.agent) Reviewed-by: stuefe
src/java.base/share/classes/java/util/jar/Attributes.java
src/jdk.management.agent/share/classes/sun/management/jdp/JdpController.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
--- 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.