Skip to content

Commit 81897b0

Browse files
committed
Fix a couple of warnings on Java 9
1 parent 8c7aed5 commit 81897b0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/test/java/com/rabbitmq/client/test/ClonePropertiesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class ClonePropertiesTest {
3838
assertEquals(MessageProperties.MINIMAL_PERSISTENT_BASIC.getDeliveryMode(),
3939
((BasicProperties) MessageProperties.MINIMAL_PERSISTENT_BASIC.clone())
4040
.getDeliveryMode());
41-
assertEquals(new Integer(2),
41+
assertEquals(Integer.valueOf(2),
4242
((BasicProperties) MessageProperties.MINIMAL_PERSISTENT_BASIC.clone())
4343
.getDeliveryMode());
4444
}

src/test/java/com/rabbitmq/client/test/ValueOrExceptionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public InsufficientMagicException sensibleClone() {
3838
}
3939

4040
@Test public void storesValue() throws InsufficientMagicException {
41-
Integer value = new Integer(3);
41+
Integer value = Integer.valueOf(3);
4242

4343
ValueOrException<Integer, InsufficientMagicException> valueOrEx =
4444
ValueOrException.makeValue(value);

src/test/java/com/rabbitmq/client/test/functional/Tables.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class Tables extends BrokerTestCase
4545
Map<String, Object> subTable = new HashMap<String, Object>();
4646
subTable.put("key", 1);
4747
table.put("S", LongStringHelper.asLongString("string"));
48-
table.put("I", new Integer(1));
48+
table.put("I", Integer.valueOf(1));
4949
table.put("D", new BigDecimal("1.1"));
5050
table.put("T", new java.util.Date(1000000));
5151
table.put("F", subTable);

0 commit comments

Comments
 (0)