Fix JDK11 deprecations
[neutron.git] / neutron-spi / src / test / java / org / opendaylight / neutron / spi / NeutronSecurityRuleJAXBTest.java
index 06b47c35748445a7fcea510e305d742d91867f36..d2e8bc54c214d9b9a47f050f205f464fe24ac232 100644 (file)
@@ -51,10 +51,10 @@ public class NeutronSecurityRuleJAXBTest {
         Assert.assertEquals("NeutronSecurityRule JAXB Test 3: Testing protocol failed", "tcp",
                 testObject.getSecurityRuleProtocol());
 
-        Assert.assertEquals("NeutronSecurityRule JAXB Test 4: Testing port range min failed", new Integer(80),
+        Assert.assertEquals("NeutronSecurityRule JAXB Test 4: Testing port range min failed", Integer.valueOf(80),
                 testObject.getSecurityRulePortMin());
 
-        Assert.assertEquals("NeutronSecurityRule JAXB Test 5: Testing port range max failed", new Integer(80),
+        Assert.assertEquals("NeutronSecurityRule JAXB Test 5: Testing port range max failed", Integer.valueOf(80),
                 testObject.getSecurityRulePortMax());
 
         Assert.assertEquals("NeutronSecurityRule JAXB Test 6: Testing ethertype failed", "IPv4",