From db9fec0bbb3b3f4606f2d6927e4e821cbf0b031f Mon Sep 17 00:00:00 2001 From: Ignasi Barrera Date: Tue, 27 Jan 2015 10:45:08 +0100 Subject: [PATCH] Fixed checkstyle violations --- .../jclouds/openstack/nova/v2_0/config/ImageAdapterTest.java | 2 +- .../jclouds/openstack/nova/v2_0/features/ImageApiMockTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/config/ImageAdapterTest.java b/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/config/ImageAdapterTest.java index dd7e33bb47..d89439e9d8 100644 --- a/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/config/ImageAdapterTest.java +++ b/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/config/ImageAdapterTest.java @@ -55,7 +55,7 @@ public class ImageAdapterTest { assertNotNull(container.image.getBlockDeviceMapping()); assertEquals(container.image.getBlockDeviceMapping().size(), 1); - assertEquals(new Integer(2), getOnlyElement(container.image.getBlockDeviceMapping()).getBootIndex()); + assertEquals(Integer.valueOf(2), getOnlyElement(container.image.getBlockDeviceMapping()).getBootIndex()); assertEquals("snapshot", getOnlyElement(container.image.getBlockDeviceMapping()).getSourceType()); } diff --git a/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/features/ImageApiMockTest.java b/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/features/ImageApiMockTest.java index 7971451b72..af81b8b385 100644 --- a/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/features/ImageApiMockTest.java +++ b/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/features/ImageApiMockTest.java @@ -48,7 +48,7 @@ public class ImageApiMockTest extends BaseOpenStackMockTest { assertEquals(1, img.getBlockDeviceMapping().size()); BlockDeviceMapping blockDeviceMapping = img.getBlockDeviceMapping().get(0); assertEquals("snapshot", blockDeviceMapping.getSourceType()); - assertEquals(new Integer(2), blockDeviceMapping.getBootIndex()); + assertEquals(Integer.valueOf(2), blockDeviceMapping.getBootIndex()); } finally { server.shutdown(); }