mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Adjust API connection getting to be static
This commit is contained in:
1 parent
1d359bd240
commit
e2d9e08505
1 file changed
+2
-3
@@ -20,8 +20,8 @@ import java.util.logging.Level;
|
||||
*/
|
||||
public class HuskHomesAPI {
|
||||
|
||||
private static HuskHomes huskHomes;
|
||||
private Connection getConnection() {
|
||||
private static final HuskHomes huskHomes = HuskHomes.getInstance();
|
||||
private static Connection getConnection() {
|
||||
return HuskHomes.getConnection();
|
||||
}
|
||||
|
||||
@@ -32,7 +32,6 @@ public class HuskHomesAPI {
|
||||
* @return instance of the HuskHomes API
|
||||
*/
|
||||
public static HuskHomesAPI getInstance() {
|
||||
huskHomes = HuskHomes.getInstance();
|
||||
if (instance == null) {
|
||||
instance = new HuskHomesAPI();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user