Repository navigation
Conversation
| @@ -26,6 +26,7 @@ public Product findById(String id) { | |||
| return products.get(id); | |||
There was a problem hiding this comment.
THREAD_SAFETY_VIOLATION: Read/Write race. Non-private method ProductsDatabase.findById(...) reads without synchronization from container this.products via call to Map.get(...). Potentially races with write in method ProductsDatabase.add(...).
Reporting because another access to the same memory occurs on a background thread, although this access may not.
| @@ -26,6 +26,7 @@ public Product findById(String id) { | |||
| return products.get(id); | |||
There was a problem hiding this comment.
THREAD_SAFETY_VIOLATION: Read/Write race. Non-private method ProductsDatabase.findById(...) reads without synchronization from container this.products via call to Map.get(...). Potentially races with write in method ProductsDatabase.add(...).
Reporting because another access to the same memory occurs on a background thread, although this access may not.
No description provided.