Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravan Kumar Lakkimsetti2021-02-17 02:37:52 -0500
committerSravan Kumar Lakkimsetti2021-02-17 02:37:52 -0500
commit96e9f521b7e23da75f7233bf47f80b8d9154df45 (patch)
tree4d23b9e6acd2004e870638c9e6652c93941ff95f
parent4ffde08df16264cfbff159024893e456a508cde8 (diff)
downloadeclipse.jdt.core-I20210217-1800.tar.gz
eclipse.jdt.core-I20210217-1800.tar.xz
eclipse.jdt.core-I20210217-1800.zip
- Compiler user / as file separator. but the test is using File.separator for / this causes windows to use \. which is incorrect. Change-Id: I4ce8590eb838681bb266808297339d80053ec225 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationBatchCompilerTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationBatchCompilerTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationBatchCompilerTest.java
index 5ee587e13b..ff78e89143 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationBatchCompilerTest.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationBatchCompilerTest.java
@@ -1103,12 +1103,12 @@ public class NullAnnotationBatchCompilerTest extends AbstractBatchCompilerTest {
// expect eea-motivated problems in Test1 but no in FooImpl:
String expectedCompilerMessage =
"----------\n" +
- "1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---" + File.separator + "test1" + File.separator + "Test1.java (at line 7)\n" +
+ "1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/test1/Test1.java (at line 7)\n" +
" String result = api.m(null);\n" +
" ^^^^\n" +
"Null type mismatch: required '@NonNull String' but the provided value is null\n" +
"----------\n" +
- "2. WARNING in ---OUTPUT_DIR_PLACEHOLDER---" + File.separator + "test1" + File.separator + "Test1.java (at line 8)\n" +
+ "2. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/test1/Test1.java (at line 8)\n" +
" System.out.println(result.toUpperCase());\n" +
" ^^^^^^\n" +
"Potential null pointer access: The variable result may be null at this location\n" +

Back to the top