Fix checkstyle whitespace issues - WHITESPACE ONLY
Change-Id: Ic205c1afd639c6008d61d9de95cb764eeb6238ca
diff --git a/src/main/java/net/onrc/onos/core/util/IPv4.java b/src/main/java/net/onrc/onos/core/util/IPv4.java
index 86795aa..a7f3d24 100644
--- a/src/main/java/net/onrc/onos/core/util/IPv4.java
+++ b/src/main/java/net/onrc/onos/core/util/IPv4.java
@@ -9,8 +9,8 @@
/**
* The class representing an IPv4 address.
*/
-@JsonDeserialize(using=IPv4Deserializer.class)
-@JsonSerialize(using=IPv4Serializer.class)
+@JsonDeserialize(using = IPv4Deserializer.class)
+@JsonSerialize(using = IPv4Serializer.class)
public class IPv4 {
private int value;
@@ -18,7 +18,7 @@
* Default constructor.
*/
public IPv4() {
- this.value = 0;
+ this.value = 0;
}
/**
@@ -27,7 +27,7 @@
* @param other the object to copy from.
*/
public IPv4(IPv4 other) {
- this.value = other.value;
+ this.value = other.value;
}
/**
@@ -36,7 +36,7 @@
* @param value the value to use.
*/
public IPv4(int value) {
- this.value = value;
+ this.value = value;
}
/**
@@ -48,13 +48,13 @@
String[] splits = value.split("\\.");
if (splits.length != 4)
throw new IllegalArgumentException("Specified IPv4 address must contain four " +
- "numerical digits separated by '.'");
+ "numerical digits separated by '.'");
int result = 0;
for (int i = 0; i < 4; ++i) {
- result |= Integer.valueOf(splits[i]) << ((3-i)*8);
+ result |= Integer.valueOf(splits[i]) << ((3 - i) * 8);
}
- this.value = result;
+ this.value = result;
}
/**
@@ -62,7 +62,9 @@
*
* @return the value of the IPv4 address.
*/
- public int value() { return value; }
+ public int value() {
+ return value;
+ }
/**
* Set the value of the IPv4 address.
@@ -70,7 +72,7 @@
* @param value the value to set.
*/
public void setValue(int value) {
- this.value = value;
+ this.value = value;
}
/**
@@ -80,9 +82,9 @@
*/
@Override
public String toString() {
- return ((this.value >> 24) & 0xFF) + "." +
- ((this.value >> 16) & 0xFF) + "." +
- ((this.value >> 8) & 0xFF) + "." +
- (this.value & 0xFF);
+ return ((this.value >> 24) & 0xFF) + "." +
+ ((this.value >> 16) & 0xFF) + "." +
+ ((this.value >> 8) & 0xFF) + "." +
+ (this.value & 0xFF);
}
}