improve code style
This commit is contained in:
parent
c76f504525
commit
403597f932
|
@ -17,12 +17,6 @@ public class TodoItemManager {
|
|||
}
|
||||
|
||||
|
||||
private TodoItemManager() {
|
||||
//empty
|
||||
}
|
||||
|
||||
|
||||
|
||||
private long mIdCount;
|
||||
|
||||
|
||||
|
@ -38,6 +32,12 @@ public class TodoItemManager {
|
|||
private HashMap<Long, TodoItem> mIdCache = new HashMap<>();
|
||||
|
||||
|
||||
private TodoItemManager() {
|
||||
//empty
|
||||
}
|
||||
|
||||
|
||||
|
||||
public long getNextId() {
|
||||
while (mIdCache.containsKey(mIdCount)) {
|
||||
++mIdCount;
|
||||
|
|
Loading…
Reference in New Issue