Skip to content

Commit 8b450ce

Browse files
authored
Merge pull request #44 from support-project/develop
Release v1.12.0
2 parents fc830ac + c8fb26f commit 8b450ce

5 files changed

Lines changed: 41 additions & 15 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ target
44
.settings
55
out.txt
66
.checkstyle
7+
.idea
8+
common.iml

pom.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>org.support-project</groupId>
66
<artifactId>common</artifactId>
7-
<version>1.11.0</version>
7+
<version>1.12.0</version>
88
<packaging>jar</packaging>
99

1010
<name>common</name>
@@ -65,13 +65,18 @@
6565
<dependency>
6666
<groupId>org.javassist</groupId>
6767
<artifactId>javassist</artifactId>
68-
<version>3.18.1-GA</version>
68+
<version>3.21.0-GA</version>
6969
</dependency>
7070
<dependency>
7171
<groupId>log4j</groupId>
7272
<artifactId>log4j</artifactId>
7373
<version>1.2.17</version>
7474
</dependency>
75+
<dependency>
76+
<groupId>com.jcabi</groupId>
77+
<artifactId>jcabi-log</artifactId>
78+
<version>0.17.2</version>
79+
</dependency>
7580
<dependency>
7681
<groupId>commons-lang</groupId>
7782
<artifactId>commons-lang</artifactId>
@@ -90,7 +95,7 @@
9095
<dependency>
9196
<groupId>com.h2database</groupId>
9297
<artifactId>h2</artifactId>
93-
<version>1.4.183</version>
98+
<version>1.4.196</version>
9499
<scope>provided</scope>
95100
</dependency>
96101
</dependencies>
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
package org.support.project.common.config;
22

33
public class Flag {
4-
5-
public static boolean is(Integer flag) {
6-
if (flag == null) {
7-
return false;
8-
}
9-
if (flag.intValue() == INT_FLAG.ON.getValue()) {
10-
return true;
11-
}
12-
return false;
13-
}
14-
4+
5+
public static boolean is(Integer flag) {
6+
if (flag == null) {
7+
return false;
8+
}
9+
if (flag.intValue() == INT_FLAG.ON.getValue()) {
10+
return true;
11+
}
12+
return false;
13+
}
14+
1515
}

src/main/java/org/support/project/common/util/PropertyUtil.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,17 @@ public static List<String> getPropertyNames(Class<?> clazz) {
6262
return props;
6363
}
6464

65+
/**
66+
* 指定のプロパティを持つかチェック
67+
* @param clazz クラス
68+
* @param prop プロパティ
69+
* @return 結果
70+
*/
71+
public static boolean hasProperty(Class<?> clazz, String prop) {
72+
List<String> props = getPropertyNames(clazz);
73+
return props.contains(prop);
74+
}
75+
6576
/**
6677
* オブジェクトのプロパティ値を取得
6778
*

src/main/java/org/support/project/common/util/StringJoinBuilder.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,13 @@ public String join(String delimiter) {
4444
public int length() {
4545
return params.size();
4646
}
47-
47+
48+
public T get(int i) {
49+
return params.get(i);
50+
}
51+
public void set(int i, T element) {
52+
params.set(i, element);
53+
}
54+
55+
4856
}

0 commit comments

Comments
 (0)