diff --git a/jdk/test/javax/xml/jaxp/transform/8268457/SurrogateTest.java b/jdk/test/javax/xml/jaxp/transform/8268457/SurrogateTest.java index 1556635b6e..d1c961a84d 100644 --- a/jdk/test/javax/xml/jaxp/transform/8268457/SurrogateTest.java +++ b/jdk/test/javax/xml/jaxp/transform/8268457/SurrogateTest.java @@ -32,7 +32,6 @@ import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; -import java.util.stream.Collectors; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; @@ -129,12 +128,6 @@ public static boolean compareWithGold(String goldfile, String outputfile, } // Compare contents of golden file with test output list line by line. - public static boolean compareStringWithGold(String goldfile, String string) - throws IOException { - return Files.readAllLines(Paths.get(goldfile)).stream().collect( - Collectors.joining(System.getProperty("line.separator"))) - .equals(string); - } public static boolean compareLinesWithGold(String goldfile, List lines) throws IOException { return Files.readAllLines(Paths.get(goldfile)).equals(lines);