Skip to content

Commit 92592f2

Browse files
committed
fix warnings from Refaster
1 parent ef2bbf3 commit 92592f2

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/org/sosy_lab/java_smt/example/SimpleUserPropagator.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,13 @@ public void onDecision(BooleanFormula expr, boolean value) {
193193
if (getBackend().propagateNextDecision(disExpr, Optional.of(decisionValue))) {
194194
// The above call returns "true" if the provided literal is yet undecided, otherwise
195195
// false.
196-
logger.log(
196+
logger.logf(
197197
Level.INFO,
198-
String.format(
199-
"User propagator overwrites decision from '%s = %s' to '%s = %s'",
200-
expr, value, disExpr, decisionValue));
198+
"User propagator overwrites decision from '%s = %s' to '%s = %s'",
199+
expr,
200+
value,
201+
disExpr,
202+
decisionValue);
201203
break;
202204
}
203205
}

src/org/sosy_lab/java_smt/solvers/princess/PrincessAbstractProver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ protected void popImpl() {
148148
* extend the original model.
149149
*/
150150
Collection<IFormula> getEvaluatedTerms() {
151-
return Collections.unmodifiableCollection(evaluatedTerms);
151+
return Collections.unmodifiableSet(evaluatedTerms);
152152
}
153153

154154
/** Track an assignment `term == value` for an evaluated term and its value. */

0 commit comments

Comments
 (0)