changeset 47269:0d0ba0cde4e9

8187883: NewClassDefEnclosing.java fails on windows Summary: Fixing whitespace normalization. Reviewed-by: mcimadamore
author jlahoda
date Mon, 25 Sep 2017 13:03:11 +0200
parents 7c2d1e90a9e4
children 4bfce39946ba
files test/langtools/tools/javac/tree/NewClassDefEnclosing.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/langtools/tools/javac/tree/NewClassDefEnclosing.java	Mon Sep 25 11:32:13 2017 +0100
+++ b/test/langtools/tools/javac/tree/NewClassDefEnclosing.java	Mon Sep 25 13:03:11 2017 +0200
@@ -68,8 +68,8 @@
             JCTree.JCVariableDecl var =
                     (JCTree.JCVariableDecl) ((ClassTree) cut.getTypeDecls().get(0)).getMembers().get(1);
 
-            expected = expected.replaceAll("[ \n]+", " ");
-            String actual = var.toString().replaceAll("[ \n]+", " ");
+            expected = expected.replaceAll("\\s+", " ");
+            String actual = var.toString().replaceAll("\\s+", " ");
 
             if (!expected.equals(actual)) {
                 System.err.println("Expected: " + expected);