-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
PaginationSample/app/src/main/java/com/matsyuk/pagination_sample/data/EmulateResponseManager.java
Lines 19 to 32 in 40d1479
| private static volatile EmulateResponseManager client; | |
| private int fakeErrorCount = 0; | |
| public static EmulateResponseManager getInstance() { | |
| if (client == null) { | |
| synchronized (EmulateResponseManager.class) { | |
| if (client == null) { | |
| client = new EmulateResponseManager(); | |
| } | |
| } | |
| } | |
| return client; | |
| } |
Can be easily replaced with simpler and faster
private static final EmulateResponseManager client = new EmulateResponseManager();
private int fakeErrorCount = 0;
public static EmulateResponseManager getInstance() {
return client;
}matzuk
Metadata
Metadata
Assignees
Labels
No labels