We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97e604f commit 86c473eCopy full SHA for 86c473e
client/src/main/java/io/split/client/ApiKeyCounter.java
@@ -15,13 +15,9 @@ public class ApiKeyCounter {
15
16
private ApiKeyCounter() {}
17
18
- public static ApiKeyCounter getApiKeyCounterInstance() {
+ public static synchronized ApiKeyCounter getApiKeyCounterInstance() {
19
if(_apiKeyCounter == null) {
20
- synchronized (ApiKeyCounter.class) {
21
- if (_apiKeyCounter == null) {
22
- _apiKeyCounter = new ApiKeyCounter();
23
- }
24
+ _apiKeyCounter = new ApiKeyCounter();
25
}
26
27
return _apiKeyCounter;
0 commit comments