diff --git a/pom.xml b/pom.xml
index b85bfd4..c231fbd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,7 +13,7 @@
com.loafle.overflow
commons-java
jar
- 1.0.40-SNAPSHOT
+ 1.0.41-SNAPSHOT
com.loafle.overflow.commons-java
diff --git a/src/main/java/com/loafle/overflow/model/meta/MetaIPType.java b/src/main/java/com/loafle/overflow/model/meta/MetaIPType.java
index 96ee1ee..7ba0ba2 100644
--- a/src/main/java/com/loafle/overflow/model/meta/MetaIPType.java
+++ b/src/main/java/com/loafle/overflow/model/meta/MetaIPType.java
@@ -71,25 +71,25 @@ public class MetaIPType {
public MetaIPType to() {
return new MetaIPType(this.value);
}
+ }
- public Enum from(MetaIPType metaIPType) {
- switch (metaIPType.id) {
- case 2:
- return V6;
+ public static Enum from(MetaIPType metaIPType) {
+ switch (metaIPType.id) {
+ case 2:
+ return Enum.V6;
- default:
- return V4;
- }
+ default:
+ return Enum.V4;
}
+ }
- public Enum from(String metaIPTypeKey) {
- switch (metaIPTypeKey) {
- case "V6":
- return V6;
+ public Enum from(String metaIPTypeKey) {
+ switch (metaIPTypeKey) {
+ case "V6":
+ return Enum.V6;
- default:
- return V4;
- }
+ default:
+ return Enum.V4;
}
}
}