You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/07/07 15:52:25 UTC

[GitHub] [maven-doxia] kwin commented on a diff in pull request #106: [DOXIA-662] Generate unique ids

kwin commented on code in PR #106:
URL: https://github.com/apache/maven-doxia/pull/106#discussion_r916033437


##########
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:
   Which MutableInteger implementation should I use? I don't want to implement it myself and the performance drawback is IMHO neglectable here.



-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org