Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
BlockReportLeaseManager.java
private synchronized long getNextId() { long id; do { id = nextId++; } while (id == 0); return id; }
This is a private method and is synchronized, however, it is only be accessed from an already-synchronized method. No need to double-synchronize.