Skip to content

Commit

Permalink
Configuration: getCharArray(...).
Browse files Browse the repository at this point in the history
  • Loading branch information
albertus82 committed May 14, 2016
1 parent cbd0d37 commit 25307ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/main/java/it/albertus/util/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ public String getFileName() {
return fileName;
}

public char[] getCharArray(final String key) {
try {
return properties.getProperty(key).toCharArray();
}
catch (final Exception e) {
return null;
}
}

public String getString(final String key) {
return properties.getProperty(key);
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/version.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Semantic Versioning (http://semver.org)
version.number=2.0.4
version.date=2016-04-16
version.number=2.1.0
version.date=2016-05-14

0 comments on commit 25307ec

Please sign in to comment.