Skip to content

Commit 76c4ead

Browse files
committed
fix CI warnings.
1 parent de7a870 commit 76c4ead

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/org/sosy_lab/java_smt/basicimpl/FormulaCreator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ public FloatingPointRoundingMode getRoundingMode(FloatingPointRoundingModeFormul
139139
return getRoundingMode(extractInfo(f));
140140
}
141141

142+
@SuppressWarnings("unused")
142143
protected FloatingPointRoundingMode getRoundingMode(TFormulaInfo f) {
143144
throw new UnsupportedOperationException(
144145
"Floating point rounding modes are not supported by this solver.");

src/org/sosy_lab/java_smt/solvers/cvc5/CVC5FormulaCreator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,9 +881,9 @@ public FloatingPointRoundingMode getRoundingMode(Term pTerm) {
881881
throw new IllegalArgumentException(
882882
String.format("Unknown rounding mode in Term '%s'.", pTerm));
883883
}
884-
} catch (CVC5ApiException pE) {
884+
} catch (CVC5ApiException e) {
885885
throw new IllegalArgumentException(
886-
String.format("Failure trying to get the rounding mode of Term '%s'.", pTerm), pE);
886+
String.format("Failure trying to get the rounding mode of Term '%s'.", pTerm), e);
887887
}
888888
}
889889

src/org/sosy_lab/java_smt/test/FloatingPointFormulaManagerTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// an API wrapper for a collection of SMT solvers:
33
// https://github.com/sosy-lab/java-smt
44
//
5-
// SPDX-FileCopyrightText: 2020 Dirk Beyer <https://www.sosy-lab.org>
5+
// SPDX-FileCopyrightText: 2025 Dirk Beyer <https://www.sosy-lab.org>
66
//
77
// SPDX-License-Identifier: Apache-2.0
88

@@ -11,7 +11,6 @@
1111
import static com.google.common.truth.Truth.assertThat;
1212
import static com.google.common.truth.Truth.assertWithMessage;
1313
import static com.google.common.truth.TruthJUnit.assume;
14-
import static org.junit.Assert.assertEquals;
1514
import static org.junit.Assert.assertThrows;
1615
import static org.sosy_lab.java_smt.test.ProverEnvironmentSubject.assertThat;
1716

@@ -860,7 +859,7 @@ public void roundingModeMapping() {
860859
// SKIP MathSAT does not support rounding mode "nearest-ties-away"
861860
continue;
862861
}
863-
assertEquals(rm, fpmgr.fromRoundingModeFormula(fpmgr.makeRoundingMode(rm)));
862+
assertThat(fpmgr.fromRoundingModeFormula(fpmgr.makeRoundingMode(rm))).isEqualTo(rm);
864863
}
865864
}
866865

0 commit comments

Comments
 (0)