diff --git a/sandbox-apis/virtualbox/src/main/java/org/jclouds/virtualbox/domain/GetIPAdressFromMAC.java b/sandbox-apis/virtualbox/src/main/java/org/jclouds/virtualbox/domain/GetIPAddressFromMAC.java similarity index 93% rename from sandbox-apis/virtualbox/src/main/java/org/jclouds/virtualbox/domain/GetIPAdressFromMAC.java rename to sandbox-apis/virtualbox/src/main/java/org/jclouds/virtualbox/domain/GetIPAddressFromMAC.java index 7031a279dc..9e9ece0b2e 100644 --- a/sandbox-apis/virtualbox/src/main/java/org/jclouds/virtualbox/domain/GetIPAdressFromMAC.java +++ b/sandbox-apis/virtualbox/src/main/java/org/jclouds/virtualbox/domain/GetIPAddressFromMAC.java @@ -1,4 +1,4 @@ -/** +/* * Licensed to jclouds, Inc. (jclouds) under one or more * contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -37,7 +37,7 @@ import com.google.common.collect.ImmutableMap; /** * @author Andrea Turli */ -public class GetIPAdressFromMAC implements Statement { +public class GetIPAddressFromMAC implements Statement { public static final Map OS_TO_ARP = ImmutableMap .of(OsFamily.UNIX, @@ -47,12 +47,12 @@ public class GetIPAdressFromMAC implements Statement { private String macAddress; private String macAddressBsd; - public GetIPAdressFromMAC(String macAddress) { + public GetIPAddressFromMAC(String macAddress) { this(Joiner.on(":").join(Splitter.fixedLength(2).split(macAddress)).toLowerCase(), MacAddressToBSD.INSTANCE.apply(Joiner.on(":").join(Splitter.fixedLength(2).split(macAddress)).toLowerCase())); } - public GetIPAdressFromMAC(String macAddress, String macAddressBsd) { + public GetIPAddressFromMAC(String macAddress, String macAddressBsd) { checkNotNull(macAddress, "macAddress"); checkArgument(macAddress.length() == 17); this.macAddress = macAddress; diff --git a/sandbox-apis/virtualbox/src/test/java/org/jclouds/virtualbox/domain/GetIPAddressFromMACTest.java b/sandbox-apis/virtualbox/src/test/java/org/jclouds/virtualbox/domain/GetIPAddressFromMACTest.java index fc847b2e2c..98820e64d6 100644 --- a/sandbox-apis/virtualbox/src/test/java/org/jclouds/virtualbox/domain/GetIPAddressFromMACTest.java +++ b/sandbox-apis/virtualbox/src/test/java/org/jclouds/virtualbox/domain/GetIPAddressFromMACTest.java @@ -37,13 +37,13 @@ public class GetIPAddressFromMACTest { private static final String bsdMacAddressWith0c = "8:11:27:1a:98:6"; public void testGetIPAdressFromMacAddressUnix() { - GetIPAdressFromMAC statement = new GetIPAdressFromMAC(macAddressWith00); + GetIPAddressFromMAC statement = new GetIPAddressFromMAC(macAddressWith00); assertEquals(statement.render(OsFamily.UNIX), "MAC=" + unixMacAddressWith00 + " && [[ `uname -s` = \"Darwin\" ]] && MAC=" + bsdMacAddressWith00 + "\n arp -an | grep $MAC\n"); - statement = new GetIPAdressFromMAC(macAddressWith0c); + statement = new GetIPAddressFromMAC(macAddressWith0c); assertEquals(statement.render(OsFamily.UNIX), "MAC=" + unixMacAddressWith0c + " && [[ `uname -s` = \"Darwin\" ]] && MAC=" + bsdMacAddressWith0c