X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Ftriemap%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Ftriemap%2FMutableIterator.java;h=988be4099a6529e4741d204c46ae9310fec07b7f;hb=24a850c1cbacd32e00c42d1714410ff11e1d7647;hp=fdd03bca5e2213bf91f067dd3e4340e5ccf16b24;hpb=7c8354f088de156274e6df3218543594be793f4d;p=yangtools.git diff --git a/third-party/triemap/src/main/java/org/opendaylight/yangtools/triemap/MutableIterator.java b/third-party/triemap/src/main/java/org/opendaylight/yangtools/triemap/MutableIterator.java index fdd03bca5e..988be4099a 100644 --- a/third-party/triemap/src/main/java/org/opendaylight/yangtools/triemap/MutableIterator.java +++ b/third-party/triemap/src/main/java/org/opendaylight/yangtools/triemap/MutableIterator.java @@ -56,6 +56,7 @@ final class MutableIterator extends AbstractIterator { * {@link #setValue(Object)} methods cannot guarantee consistency with the base map and may produce surprising * results when the map is concurrently modified, either directly or via another entry/iterator. * + *

* The behavior is similar to what Java 8's ConcurrentHashMap does, which is probably the most consistent handling * of this case without requiring expensive and revalidation. */ @@ -81,7 +82,7 @@ final class MutableIterator extends AbstractIterator { * * @implSpec * This implementation returns the most uptodate value we have observed via this entry. It does not reflect - * concurrent modifications, nor does it throw {@link IllegalStateException} if the entry is removed. + * concurrent modifications, nor does it throw {@link IllegalStateException} if the entry is removed. */ @Override public V getValue() { @@ -93,7 +94,7 @@ final class MutableIterator extends AbstractIterator { * * @implSpec * This implementation returns the most uptodate value we have observed via this entry. It does not reflect - * concurrent modifications, nor does it throw {@link IllegalStateException} if the entry is removed. + * concurrent modifications, nor does it throw {@link IllegalStateException} if the entry is removed. */ @Override public V setValue(final V value) {