mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-06 16:50:39 +00:00
Merge pull request #29 from Parabot/development
[CLEANUP] Reformatted code
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user