Skip to content

Commit dfbf1a0

Browse files
committed
nit: Suppress two correctness warnings in org.eclipse.mat.tests
1 parent 5ddfc5d commit dfbf1a0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

plugins/org.eclipse.mat.tests/src/org/eclipse/mat/tests/collect/PrimitiveMapTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import java.util.Random;
4141
import java.util.Set;
4242

43+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
4344
import org.eclipse.mat.collect.HashMapIntLong;
4445
import org.eclipse.mat.collect.HashMapIntObject;
4546
import org.eclipse.mat.collect.HashMapLongObject;
@@ -1061,6 +1062,7 @@ public void testObjectLongMapN() throws ClassNotFoundException, IOException
10611062
* @param v the Integer to clone
10621063
* @return probably a different Integer but equal to v
10631064
*/
1065+
@SuppressFBWarnings("RC_REF_COMPARISON")
10641066
static Integer cloneInteger(Integer v)
10651067
{
10661068
Integer v1 = Integer.valueOf(v);
@@ -1082,6 +1084,7 @@ static Integer cloneInteger(Integer v)
10821084
* @param v the Long to clone
10831085
* @return probably a different Long but equal to v
10841086
*/
1087+
@SuppressFBWarnings("RC_REF_COMPARISON")
10851088
static Long cloneLong(Long v)
10861089
{
10871090
Long v1 = Long.valueOf(v);

0 commit comments

Comments
 (0)