private CommonTree primaryExpression(String content) {
try {
setInput(content);
- return (CommonTree) parser.primaryExpression().getTree();
+ return parser.primaryExpression().getTree();
} catch (RecognitionException e) {
return null;
}
private CommonTree unaryExpression(String content) {
try {
setInput(content);
- return (CommonTree) parser.unaryExpression().getTree();
+ return parser.unaryExpression().getTree();
} catch (RecognitionException e) {
return null;
}
private CommonTree declaration(String content) {
try {
setInput(content);
- return (CommonTree) parser.declaration().getTree();
+ return parser.declaration().getTree();
} catch (RecognitionException e) {
return null;
}
<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr3-maven-plugin</artifactId>
- <version>3.2</version>
+ <version>3.5.2</version>
<executions>
<execution>
<goals>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr-runtime</artifactId>
- <version>3.2</version>
+ <version>3.5.2</version>
</dependency>
</dependencies>
</plugin>