]>
Commit | Line | Data |
---|---|---|
1b2798f6 EK |
1 | package no.uio.ifi.refaktor.analyze.checkers; |
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 | class IllegalReturnStatementChecker extends ASTVisitor { | |
9 | ||
10 | @Override | |
11 | public boolean visit(ReturnStatement node) { | |
12 | throw new IllegalStatementFoundException(node); | |
13 | } | |
14 | } |