8166841: Unused import causes test failure on compilation for java.text tests
authorskovalev
Wed, 28 Sep 2016 19:21:42 +0300
changeset 41211 744278856e58
parent 41210 73593ed418ff
child 41212 54a8bb41b174
8166841: Unused import causes test failure on compilation for java.text tests Reviewed-by: igerasim
jdk/test/java/text/Format/NumberFormat/DFSSerialization.java
jdk/test/java/text/Format/NumberFormat/SerializationLoadTest.java
--- a/jdk/test/java/text/Format/NumberFormat/DFSSerialization.java	Wed Sep 28 15:47:03 2016 +0200
+++ b/jdk/test/java/text/Format/NumberFormat/DFSSerialization.java	Wed Sep 28 19:21:42 2016 +0300
@@ -27,13 +27,21 @@
  * @library /java/text/testlib
  * @build DFSSerialization IntlTest HexDumpReader
  * @run main DFSSerialization
- * @summary Three different tests are done. 1.read from the object created using jdk1.4.2  2.create a valid DecimalFormatSymbols object with current JDK, then read the object 3.Try to create an valid DecimalFormatSymbols object by passing null to set null for the exponent separator symbol. Expect the NullPointerException.
+ * @summary Three different tests are done.
+ *    1. read from the object created using jdk1.4.2
+ *    2. create a valid DecimalFormatSymbols object with current JDK, then read the object
+ *    3. Try to create an valid DecimalFormatSymbols object by passing null to set null
+ *       for the exponent separator symbol. Expect the NullPointerException.
  */
 
-import java.awt.*;
-import java.text.*;
-import java.util.*;
-import java.io.*;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.InputStream;
+import java.io.ObjectInputStream;
+import java.io.ObjectOutputStream;
+import java.text.DecimalFormatSymbols;
+import java.util.Locale;
 
 public class DFSSerialization extends IntlTest{
     public static void main(String[] args) throws Exception {
--- a/jdk/test/java/text/Format/NumberFormat/SerializationLoadTest.java	Wed Sep 28 15:47:03 2016 +0200
+++ b/jdk/test/java/text/Format/NumberFormat/SerializationLoadTest.java	Wed Sep 28 19:21:42 2016 +0300
@@ -31,10 +31,13 @@
  * @key randomness
  */
 
-import java.awt.*;
-import java.text.*;
-import java.util.*;
-import java.io.*;
+import java.io.InputStream;
+import java.io.ObjectInputStream;
+import java.io.Serializable;
+import java.text.DecimalFormat;
+import java.text.DecimalFormatSymbols;
+import java.text.NumberFormat;
+import java.util.Random;
 
 public class SerializationLoadTest {