changeset 15744:9edae8b6b4c2

8166841: Unused import causes test failure on compilation for java.text tests Reviewed-by: igerasim
author skovalev
date Wed, 28 Sep 2016 19:21:42 +0300
parents 2b5229c75e93
children 9850eb9c799e
files test/java/text/Format/NumberFormat/DFSSerialization.java test/java/text/Format/NumberFormat/SerializationLoadTest.java
diffstat 2 files changed, 20 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/text/Format/NumberFormat/DFSSerialization.java	Wed Sep 28 15:47:03 2016 +0200
+++ b/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/test/java/text/Format/NumberFormat/SerializationLoadTest.java	Wed Sep 28 15:47:03 2016 +0200
+++ b/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 {