]> git.uio.no Git - ifi-stolz-refaktor.git/blob - software/no.uio.ifi.refaktor/src/no/uio/ifi/refaktor/analyze/collectors/IllegalReturnStatementChecker.java
df05f035103804762063c8437e3e7c80f9ba9ce0
[ifi-stolz-refaktor.git] / software / no.uio.ifi.refaktor / src / no / uio / ifi / refaktor / analyze / collectors / IllegalReturnStatementChecker.java
1 package no.uio.ifi.refaktor.analyze.collectors;
2
3 import no.uio.ifi.refaktor.analyze.exceptions.IllegalStatementFoundException;
4
5 import org.eclipse.jdt.core.dom.ASTVisitor;
6 import org.eclipse.jdt.core.dom.ReturnStatement;
7
8 public class IllegalReturnStatementChecker extends ASTVisitor {
9
10         @Override
11         public boolean visit(ReturnStatement node) {
12                 throw new IllegalStatementFoundException(node);
13         }
14 }