Skip to content

Commit eba42ab

Browse files
committed
Removed TODOs
1 parent 4ffb91a commit eba42ab

File tree

8 files changed

+10
-15
lines changed

8 files changed

+10
-15
lines changed

liquidjava-api/src/main/java/liquidjava/specification/Ghost.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
import java.lang.annotation.Target;
88

99
/**
10-
* Annotation to create a ghost variable for a class. The annotation receives the type and name of
10+
* Annotation to create a ghost variable for a class. The annotation receives
11+
* the type and name of
1112
* the ghost within a string e.g. @Ghost("int size")
1213
*
1314
* @author catarina gamboa
1415
*/
1516
@Retention(RetentionPolicy.RUNTIME)
16-
@Target({ElementType.TYPE})
17+
@Target({ ElementType.TYPE })
1718
@Repeatable(GhostMultiple.class)
1819
public @interface Ghost {
1920
public String value();

liquidjava-verifier/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
<!-- versions -->
111111
<version.junit>4.13.1</version.junit>
112112
<version.memcompiler>1.3.0</version.memcompiler>
113-
<version.spoon>7.3.0-SNAPSHOT</version.spoon>
113+
<version.spoon>10.4.2</version.spoon>
114114
<version.z3>4.8.8</version.z3>
115115
<version.liquidjava>1.0</version.liquidjava>
116116
<!-- plugin versions -->
@@ -140,7 +140,7 @@
140140
<dependency>
141141
<groupId>fr.inria.gforge.spoon</groupId>
142142
<artifactId>spoon-core</artifactId>
143-
<version>7.3.0</version>
143+
<version>10.4.2</version>
144144
</dependency>
145145
<dependency>
146146
<groupId>tools.aqua</groupId>

liquidjava-verifier/src/main/java/liquidjava/processor/context/AliasWrapper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public AliasDTO createAliasDTO() {
9999
}
100100

101101
// public Expression getSubstitutedExpression(List<String> newNames) {
102-
// // TODO Auto-generated method stub
103102
// return null;
104103
// }
105104
//

liquidjava-verifier/src/main/java/liquidjava/processor/context/GhostState.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ public class GhostState extends GhostFunction {
1111

1212
public GhostState(String name, List<CtTypeReference<?>> list, CtTypeReference<?> return_type, String klass) {
1313
super(name, list, return_type, klass);
14-
// TODO Auto-generated constructor stub
1514
}
1615

1716
public void setGhostParent(GhostFunction parent) {

liquidjava-verifier/src/main/java/liquidjava/processor/refinement_checker/RefinementTypeChecker.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,9 @@ public <T> void visitCtVariableRead(CtVariableRead<T> variableRead) {
348348
getPutVariableMetadada(variableRead, varDecl.getSimpleName());
349349
}
350350

351-
/** Visitor for binary operations Adds metadata to the binary operations from the operands */
351+
/**
352+
* Visitor for binary operations Adds metadata to the binary operations from the operands
353+
*/
352354
@Override
353355
public <T> void visitCtBinaryOperator(CtBinaryOperator<T> operator) {
354356
if (errorEmitter.foundError()) {
@@ -469,7 +471,6 @@ public <T> void visitCtArrayWrite(CtArrayWrite<T> arrayWrite) {
469471
return; // error already in ErrorEmitter
470472
}
471473
arrayWrite.putMetadata(REFINE_KEY, fp);
472-
// TODO fazer mais...? faz sentido
473474
}
474475

475476
@Override

liquidjava-verifier/src/main/java/liquidjava/processor/refinement_checker/general_checkers/OperationsChecker.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@ public <T> void getBinaryOpRefinements(CtBinaryOperator<T> operator) throws Pars
100100
*
101101
* @throws ParsingException
102102
*/
103+
@SuppressWarnings({ "unchecked" })
103104
public <T> void getUnaryOpRefinements(CtUnaryOperator<T> operator) throws ParsingException {
104-
CtExpression<T> ex = operator.getOperand();
105+
CtExpression<T> ex = (CtExpression<T>) operator.getOperand();
105106
String name = rtc.freshFormat;
106107
Predicate all;
107108
if (ex instanceof CtVariableWrite) {

liquidjava-verifier/src/main/java/liquidjava/rj_language/parsing/RJErrorListener.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,16 @@ public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int
4141
@Override
4242
public void reportAmbiguity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, boolean exact,
4343
BitSet ambigAlts, ATNConfigSet configs) {
44-
// TODO Auto-generated method stub
4544
}
4645

4746
@Override
4847
public void reportAttemptingFullContext(Parser recognizer, DFA dfa, int startIndex, int stopIndex,
4948
BitSet conflictingAlts, ATNConfigSet configs) {
50-
// TODO Auto-generated method stub
5149
}
5250

5351
@Override
5452
public void reportContextSensitivity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, int prediction,
5553
ATNConfigSet configs) {
56-
// TODO Auto-generated method stub
5754
}
5855

5956
public int getErrors() {

liquidjava-verifier/src/main/java/liquidjava/rj_language/parsing/RJListener.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public void visitTerminal(TerminalNode node) {
2424

2525
@Override
2626
public void visitErrorNode(ErrorNode node) {
27-
// TODO Auto-generated method stub
2827

2928
}
3029

@@ -40,7 +39,5 @@ public void enterEveryRule(ParserRuleContext ctx) {
4039

4140
@Override
4241
public void exitEveryRule(ParserRuleContext ctx) {
43-
// TODO Auto-generated method stub
44-
4542
}
4643
}

0 commit comments

Comments
 (0)