Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #143 from gerrieg/config
Browse files Browse the repository at this point in the history
Fixed integer primitive type in configuration
  • Loading branch information
kaikreuzer committed Jan 6, 2015
2 parents d12b0e0 + 7040b34 commit 01bb10a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public <T> T as(Class<T> configurationClass) {
value = bdValue.doubleValue();
} else if (typeName.equalsIgnoreCase("Long")) {
value = bdValue.longValue();
} else if (typeName.equalsIgnoreCase("Integer")) {
} else if (typeName.equalsIgnoreCase("Integer") || typeName.equalsIgnoreCase("int")) {
value = bdValue.intValue();
}
}
Expand Down

0 comments on commit 01bb10a

Please sign in to comment.