Skip to content

Commit

Permalink
A single instace, otherwise a static get() method makes no sense.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpseng committed Apr 24, 2024
1 parent 14d60bc commit 953f50b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ public class JSONConfiguration {

private JSONConfiguration() {}

private static final JSONConfiguration instance = new JSONConfiguration();

public static JSONConfiguration get() {
return new JSONConfiguration();
return instance;
}

public <T> JSONConfiguration setParameter(String name, T value) {
Expand Down

0 comments on commit 953f50b

Please sign in to comment.