Commit 4be6fbd authored and Google Java Core Libraries
committed
1 parent 4b0fbc0 commit 4be6fbd Copy full SHA for 4be6fbd
File tree 1 file changed +1
-3
lines changed
core/src/test/java/com/google/common/truth
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 32
32
* @author Kurt Alfred Kluever
33
33
*/
34
34
@ RunWith (JUnit4 .class )
35
+ @ SuppressWarnings ("SelfAssertion" )
35
36
public class NumericComparisonTest {
36
37
37
- @ SuppressWarnings ("TruthSelfEquals" )
38
38
@ Test
39
39
public void testPrimitivesVsBoxedPrimitivesVsObject_int () {
40
40
int int42 = 42 ;
@@ -54,7 +54,6 @@ public void testPrimitivesVsBoxedPrimitivesVsObject_int() {
54
54
assertThat (object42 ).isEqualTo (object42 );
55
55
}
56
56
57
- @ SuppressWarnings ("TruthSelfEquals" )
58
57
@ Test
59
58
public void testPrimitivesVsBoxedPrimitivesVsObject_long () {
60
59
long longPrim42 = 42 ;
@@ -75,7 +74,6 @@ public void testPrimitivesVsBoxedPrimitivesVsObject_long() {
75
74
}
76
75
77
76
@ Test
78
- @ SuppressWarnings ("TruthSelfEquals" )
79
77
public void testAllCombinations_pass () {
80
78
assertThat (42 ).isEqualTo (42L );
81
79
assertThat (42 ).isEqualTo (Long .valueOf (42L ));
You can’t perform that action at this time.
0 commit comments