We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b896555 commit a973c18Copy full SHA for a973c18
1 file changed
src/main/java/org/scijava/usage/DefaultUsageService.java
@@ -66,7 +66,9 @@ public Map<String, UsageStats> getStats() {
66
@Override
67
public void clearStats() {
68
// NB: Rather than calling stats.clear(), we allocate a new object
69
- // so that references to the old table are not modified.
+ // so that references to the old table are not modified. In this way,
70
+ // any code that obtained the old table reference directly by calling
71
+ // getStats() can continue working with it unimpeded.
72
stats = new HashMap<String, UsageStats>();
73
}
74
0 commit comments