Skip to content

Commit

Permalink
Merge pull request #44 from support-project/develop
Browse files Browse the repository at this point in the history
Release v1.12.0
  • Loading branch information
koda-masaru authored Jan 8, 2018
2 parents fc830ac + c8fb26f commit 8b450ce
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ target
.settings
out.txt
.checkstyle
.idea
common.iml
11 changes: 8 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.support-project</groupId>
<artifactId>common</artifactId>
<version>1.11.0</version>
<version>1.12.0</version>
<packaging>jar</packaging>

<name>common</name>
Expand Down Expand Up @@ -65,13 +65,18 @@
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.18.1-GA</version>
<version>3.21.0-GA</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<dependency>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-log</artifactId>
<version>0.17.2</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
Expand All @@ -90,7 +95,7 @@
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.4.183</version>
<version>1.4.196</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
22 changes: 11 additions & 11 deletions src/main/java/org/support/project/common/config/Flag.java
Original file line number Diff line number Diff line change
@@ -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;
}
}
11 changes: 11 additions & 0 deletions src/main/java/org/support/project/common/util/PropertyUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ public static List<String> getPropertyNames(Class<?> clazz) {
return props;
}

/**
* 指定のプロパティを持つかチェック
* @param clazz クラス
* @param prop プロパティ
* @return 結果
*/
public static boolean hasProperty(Class<?> clazz, String prop) {
List<String> props = getPropertyNames(clazz);
return props.contains(prop);
}

/**
* オブジェクトのプロパティ値を取得
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


}

0 comments on commit 8b450ce

Please sign in to comment.