]> git.uio.no Git - ifi-stolz-refaktor.git/commitdiff
Another exception.
authorVolker Stolz <stolz@ifi.uio.no>
Fri, 2 Oct 2015 14:48:03 +0000 (16:48 +0200)
committerVolker Stolz <stolz@ifi.uio.no>
Thu, 8 Oct 2015 15:54:51 +0000 (17:54 +0200)
software/no.uio.ifi.refaktor/src/no/uio/ifi/refaktor/change/executors/ExtractAndMoveMethodExecutor.java

index 414a72fb4461018b6bbaeada3195e6715a5fbe27..81387b5070f7475fee92cd9a7c83b20a5fba0f34 100644 (file)
@@ -141,15 +141,11 @@ public class ExtractAndMoveMethodExecutor implements Executor {
 
        /**
         * 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 {