From d80635dd57f84cb589b61e883d0272acd70d3c75 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 11 Jun 2018 23:23:03 +0900 Subject: [PATCH] ing --- pom.xml | 2 +- .../overflow/model/meta/MetaIPType.java | 28 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) 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; } } }