Skip to content

Commit

Permalink
Added toString() implementation to Configuration and Version classes
Browse files Browse the repository at this point in the history
(Singletons).
  • Loading branch information
albertus82 committed May 22, 2015
1 parent 09fbb56 commit eae2dcd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/it/albertus/util/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,9 @@ public boolean contains(String key) {
return properties.get(key) != null;
}

@Override
public String toString() {
return properties.toString();
}

}
5 changes: 5 additions & 0 deletions src/it/albertus/util/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,9 @@ public String getDate() {
return properties.getProperty(KEY_VERSION_DATE);
}

@Override
public String toString() {
return properties.toString();
}

}
4 changes: 2 additions & 2 deletions src/version.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version.number=1.0.0
version.date=2015-05-21
version.number=1.0.1
version.date=2015-05-22

0 comments on commit eae2dcd

Please sign in to comment.