You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/03/07 20:49:37 UTC
[commons-lang] 08/10: Unnecessary @SuppressWarnings.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit b4f25f30561a9222a1de76133c1e9452badbb3fe
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Mar 7 15:38:02 2022 -0500
Unnecessary @SuppressWarnings.
---
.../java/org/apache/commons/lang3/builder/HashCodeBuilderTest.java | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/test/java/org/apache/commons/lang3/builder/HashCodeBuilderTest.java b/src/test/java/org/apache/commons/lang3/builder/HashCodeBuilderTest.java
index d43ea02..a9c839c 100644
--- a/src/test/java/org/apache/commons/lang3/builder/HashCodeBuilderTest.java
+++ b/src/test/java/org/apache/commons/lang3/builder/HashCodeBuilderTest.java
@@ -207,7 +207,6 @@ public class HashCodeBuilderTest {
}
@Test
- @SuppressWarnings("cast") // cast is not really needed, keep for consistency
public void testLong() {
assertEquals(17 * 37, new HashCodeBuilder(17, 37).append(0L).toHashCode());
assertEquals(17 * 37 + (int) (123456789L ^ 123456789L >> 32), new HashCodeBuilder(17, 37).append(
@@ -215,7 +214,6 @@ public class HashCodeBuilderTest {
}
@Test
- @SuppressWarnings("cast") // cast is not really needed, keep for consistency
public void testInt() {
assertEquals(17 * 37, new HashCodeBuilder(17, 37).append(0).toHashCode());
assertEquals(17 * 37 + 123456, new HashCodeBuilder(17, 37).append(123456).toHashCode());
@@ -240,7 +238,6 @@ public class HashCodeBuilderTest {
}
@Test
- @SuppressWarnings("cast") // cast is not really needed, keep for consistency
public void testDouble() {
assertEquals(17 * 37, new HashCodeBuilder(17, 37).append(0d).toHashCode());
final double d = 1234567.89;
@@ -249,7 +246,6 @@ public class HashCodeBuilderTest {
}
@Test
- @SuppressWarnings("cast") // cast is not really needed, keep for consistency
public void testFloat() {
assertEquals(17 * 37, new HashCodeBuilder(17, 37).append(0f).toHashCode());
final float f = 1234.89f;