From 12deb5a338b354c2c16cfb73384a5dd81260025c Mon Sep 17 00:00:00 2001 From: Koda Date: Thu, 2 Nov 2017 06:46:00 +0900 Subject: [PATCH 1/3] Change version to develop next version --- .gitignore | 2 ++ pom.xml | 11 +++++++--- .../support/project/common/config/Flag.java | 22 +++++++++---------- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 2b10333..4ddc8cf 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ target .settings out.txt .checkstyle +.idea +common.iml diff --git a/pom.xml b/pom.xml index 5eb0e7c..201eddb 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.support-project common - 1.11.0 + 1.12.0-SNAPSHOT jar common @@ -65,13 +65,18 @@ org.javassist javassist - 3.18.1-GA + 3.21.0-GA log4j log4j 1.2.17 + + com.jcabi + jcabi-log + 0.17.2 + commons-lang commons-lang @@ -90,7 +95,7 @@ com.h2database h2 - 1.4.183 + 1.4.196 provided diff --git a/src/main/java/org/support/project/common/config/Flag.java b/src/main/java/org/support/project/common/config/Flag.java index d963006..bcbf304 100644 --- a/src/main/java/org/support/project/common/config/Flag.java +++ b/src/main/java/org/support/project/common/config/Flag.java @@ -1,15 +1,15 @@ package org.support.project.common.config; public class Flag { - - public static boolean is(Integer flag) { - if (flag == null) { - return false; - } - if (flag.intValue() == INT_FLAG.ON.getValue()) { - return true; - } - return false; - } - + + public static boolean is(Integer flag) { + if (flag == null) { + return false; + } + if (flag.intValue() == INT_FLAG.ON.getValue()) { + return true; + } + return false; + } + } From ba9752dcf530926e20540da062f8e2eacfeb0b9e Mon Sep 17 00:00:00 2001 From: Koda Date: Sun, 12 Nov 2017 20:01:56 +0900 Subject: [PATCH 2/3] Add utility methods --- .../org/support/project/common/util/PropertyUtil.java | 11 +++++++++++ .../project/common/util/StringJoinBuilder.java | 10 +++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/support/project/common/util/PropertyUtil.java b/src/main/java/org/support/project/common/util/PropertyUtil.java index b67a428..179b002 100755 --- a/src/main/java/org/support/project/common/util/PropertyUtil.java +++ b/src/main/java/org/support/project/common/util/PropertyUtil.java @@ -62,6 +62,17 @@ public static List getPropertyNames(Class clazz) { return props; } + /** + * 指定のプロパティを持つかチェック + * @param clazz クラス + * @param prop プロパティ + * @return 結果 + */ + public static boolean hasProperty(Class clazz, String prop) { + List props = getPropertyNames(clazz); + return props.contains(prop); + } + /** * オブジェクトのプロパティ値を取得 * diff --git a/src/main/java/org/support/project/common/util/StringJoinBuilder.java b/src/main/java/org/support/project/common/util/StringJoinBuilder.java index ceca330..c10b935 100644 --- a/src/main/java/org/support/project/common/util/StringJoinBuilder.java +++ b/src/main/java/org/support/project/common/util/StringJoinBuilder.java @@ -44,5 +44,13 @@ public String join(String delimiter) { public int length() { return params.size(); } - + + public T get(int i) { + return params.get(i); + } + public void set(int i, T element) { + params.set(i, element); + } + + } From c8fb26f7c30e25c50e41e863b8713b057dc2678d Mon Sep 17 00:00:00 2001 From: Koda Date: Mon, 8 Jan 2018 12:47:56 +0900 Subject: [PATCH 3/3] Release v1.12.0 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 201eddb..98f14d1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.support-project common - 1.12.0-SNAPSHOT + 1.12.0 jar common