[CLEANUP] Reformatted code

This commit is contained in:
JKetelaar
2015-12-26 18:12:06 +01:00
parent 28c906db2d
commit 34c9b40999
@@ -14,11 +14,11 @@ public class ProjectProperties {
private static ProjectProperties instance; private static ProjectProperties instance;
private Properties cached = new Properties(); private Properties cached = new Properties();
private ProjectProperties(){ private ProjectProperties() {
setProperties(); setProperties();
} }
private void setProperties(){ private void setProperties() {
InputStream input; InputStream input;
try { try {
String propertiesFileName = "storage/app.properties"; String propertiesFileName = "storage/app.properties";
@@ -32,15 +32,15 @@ public class ProjectProperties {
} }
} }
private Properties getCached(){ private Properties getCached() {
return cached; return cached;
} }
public static Version getProjectVersion(){ public static Version getProjectVersion() {
return new Version(getInstance().getCached().getProperty("application.version")); return new Version(getInstance().getCached().getProperty("application.version"));
} }
public static ProjectProperties getInstance(){ public static ProjectProperties getInstance() {
return instance == null ? instance = new ProjectProperties() : instance; return instance == null ? instance = new ProjectProperties() : instance;
} }
} }