Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2020-08-07 06:37:47 +0000
committerAlexander Kurtakov2020-08-07 06:37:47 +0000
commit6bbb8bd6b4ff9a7d21c05fdd5b59cc07f44714ba (patch)
treeef46bcb1c7be27df9c33a313013ceb807c94eeca
parent83eeb8ba1bb12d55b4a20f19f43db66d877ab6f0 (diff)
downloadeclipse.jdt.core-I20200807-1800.tar.gz
eclipse.jdt.core-I20200807-1800.tar.xz
eclipse.jdt.core-I20200807-1800.zip
org.eclipse.jdt.internal.compiler.tool.EclipseFileManager.getLocationForModule Fix warning in nightly build. Change-Id: I38f363e29156fc30573a1c90ccb253659d99f2e0 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--org.eclipse.jdt.compiler.tool.tests/src/org/eclipse/jdt/compiler/tool/tests/CompilerToolTests.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/org.eclipse.jdt.compiler.tool.tests/src/org/eclipse/jdt/compiler/tool/tests/CompilerToolTests.java b/org.eclipse.jdt.compiler.tool.tests/src/org/eclipse/jdt/compiler/tool/tests/CompilerToolTests.java
index 43cf3d4870..b989978804 100644
--- a/org.eclipse.jdt.compiler.tool.tests/src/org/eclipse/jdt/compiler/tool/tests/CompilerToolTests.java
+++ b/org.eclipse.jdt.compiler.tool.tests/src/org/eclipse/jdt/compiler/tool/tests/CompilerToolTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2018 IBM Corporation and others.
+ * Copyright (c) 2006, 2020 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -961,16 +961,15 @@ static final String[] FAKE_ZERO_ARG_OPTIONS = new String[] {
System.err.println("Compilation failed: " + stringWriter.getBuffer().toString());
assertTrue("Compilation failed ", false);
}
- ClassFileReader reader = null;
try {
- reader = ClassFileReader.read(new File(tmpFolder + "/target/classes", "module-info.class"), true);
+ ClassFileReader.read(new File(tmpFolder + "/target/classes", "module-info.class"), true);
} catch (ClassFormatException e) {
assertTrue("Should not happen", false);
} catch (IOException e) {
assertTrue("Should not happen", false);
}
try {
- reader = ClassFileReader.read(new File(tmpFolder + "/target/classes", "bar/Library.class"), true);
+ ClassFileReader.read(new File(tmpFolder + "/target/classes", "bar/Library.class"), true);
} catch (ClassFormatException e) {
assertTrue("Should not happen", false);
} catch (IOException e) {

Back to the top