michael-o commented on code in PR #106:
URL: https://github.com/apache/maven-doxia/pull/106#discussion_r916050459
##########
doxia-core/src/main/java/org/apache/maven/doxia/index/IndexingSink.java:
##########
@@ -69,6 +72,10 @@
/** The stack. */
private final Stack<IndexEntry> stack;
+ /** A map containing all used ids of index entries as key and how often
they are used as value
+ * (0-based, i.e. 0 means used 1 time). */
+ private final Map<String, AtomicInteger> usedIds;
Review Comment:
Ideally from Commons Lang, but we don't have it in the class path. Since for
a single class it doesn't really make sense, let's stick to it and please add a
comment which depicts that we explicitly don't require the atomic semantics,
but the mutuability only.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]