/**
* Obtains the node of the extracted method as a ASTNode: MethodDeclaration
+ * @throws JavaModelException
*/
- private void collectMethodResources() {
- try {
- ICompilationUnit icompilationunit = postExecutionResources.getExtractedMethod().getCompilationUnit();
- postExecutionResourcesMethod = ASTNodeSearchUtil.getMethodDeclarationNode(postExecutionResources.getExtractedMethod(), ParseUtils.parse(icompilationunit));
- } catch (JavaModelException e) {
- throw new RefaktorAnalyzerException(e) {
- };
- }
+ private void collectMethodResources() throws JavaModelException {
+ ICompilationUnit icompilationunit = postExecutionResources.getExtractedMethod().getCompilationUnit();
+ postExecutionResourcesMethod = ASTNodeSearchUtil.getMethodDeclarationNode(postExecutionResources.getExtractedMethod(), ParseUtils.parse(icompilationunit));
}
private void performMoveMethodRefactoring() throws JavaModelException, CoreException {