From 718ccf52eaa979f953868fddcc7437e0c279cf75 Mon Sep 17 00:00:00 2001 From: Takakuri Date: Mon, 10 Jun 2024 17:54:45 +0900 Subject: [PATCH] Backport 7eb0372e55f23275b12470593adc97f1b79bc965 --- .../javax/xml/jaxp/transform/8268457/SurrogateTest.java | 7 ------- 1 file changed, 7 deletions(-) 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);