Skip to content
Snippets Groups Projects
Commit 45ca4071 authored by Daniel Plagge's avatar Daniel Plagge
Browse files

Added comments, made SuppressWarnings annotation more specific

parent 3f9e424d
No related branches found
No related tags found
No related merge requests found
...@@ -52,15 +52,10 @@ import org.eventb.core.ast.extension.IExpressionExtension; ...@@ -52,15 +52,10 @@ import org.eventb.core.ast.extension.IExpressionExtension;
import de.be4.classicalb.core.parser.node.*; import de.be4.classicalb.core.parser.node.*;
/** /**
* The global SuppressWarnings annotation is used because the deprecated code is * This visitor on an Event-B AST generates an AST in ProB's format.
* used to check if this new implementation computes the same results as the old
* code.
*
* That should be removed after a while.
* *
* @author plagge * @author plagge
*/ */
@SuppressWarnings("deprecation")
public class TranslationVisitor implements ISimpleVisitor { public class TranslationVisitor implements ISimpleVisitor {
private static final String UNCOVERED_PREDICATE = "Uncovered Predicate"; private static final String UNCOVERED_PREDICATE = "Uncovered Predicate";
...@@ -615,6 +610,7 @@ public class TranslationVisitor implements ISimpleVisitor { ...@@ -615,6 +610,7 @@ public class TranslationVisitor implements ISimpleVisitor {
predicates.push(result); predicates.push(result);
} }
@SuppressWarnings("deprecation")
@Override @Override
public void visitUnaryExpression(final UnaryExpression expression) { public void visitUnaryExpression(final UnaryExpression expression) {
final PExpression exp = getExpression(expression.getChild()); final PExpression exp = getExpression(expression.getChild());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment