Skip to content

Commit 197281f

Browse files
author
Rob Stryker
committed
JavaSearchTests.testCoreException - CoreException should be propagated, not caught
Signed-off-by: Rob Stryker <[email protected]>
1 parent 3640faa commit 197281f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/core/search/DOMJavaSearchDelegate.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,7 @@ public void acceptAST(org.eclipse.jdt.core.ICompilationUnit source,
175175
int level = wrapper.trustedASTNodeLevels.get(node);
176176
SearchMatch match = toMatch(locator, node, level, possibleMatch);
177177
if (match != null && match.getElement() != null) {
178-
try {
179-
SearchMatchingUtility.reportSearchMatch(locator, match);
180-
} catch (CoreException ex) {
181-
ILog.get().error(ex.getMessage(), ex);
182-
}
178+
SearchMatchingUtility.reportSearchMatch(locator, match);
183179
}
184180
}
185181
}

0 commit comments

Comments
 (0)