Skip to content

Commit bf6d3a0

Browse files
authored
remove old mentions of synchronization that no longer apply (#1253)
1 parent b8a132e commit bf6d3a0

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/main/java/com/fasterxml/jackson/core/sym/CharsToNameCanonicalizer.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,9 @@ public static CharsToNameCanonicalizer createRoot(TokenStreamFactory owner, int
364364
* read-only copy of parent's data, but when changes are needed, a
365365
* copy will be created.
366366
*<p>
367-
* Note: while this method is synchronized, it is generally not
368-
* safe to both use makeChild/mergeChild, AND to use instance
369-
* actively. Instead, a separate 'root' instance should be used
370-
* on which only makeChild/mergeChild are called, but instance itself
367+
* Note: It is generally not safe to both use makeChild/mergeChild, AND to
368+
* use instance actively. Instead, a separate 'root' instance should be
369+
* used on which only makeChild/mergeChild are called, but instance itself
371370
* is not used as a symbol table.
372371
*
373372
* @return Actual canonicalizer instance that can be used by a parser

src/main/java/com/fasterxml/jackson/core/util/ThreadLocalBufferManager.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ public SoftReference<BufferRecycler> wrapAndTrack(BufferRecycler br) {
9595

9696
/**
9797
* Remove cleared (inactive) SoftRefs from our set. Gc may have cleared one or more,
98-
* and made them inactive. We minimize contention by keeping synchronized sections short:
99-
* the poll/remove methods
98+
* and made them inactive.
10099
*/
101100
private void removeSoftRefsClearedByGc() {
102101
SoftReference<?> clearedSoftRef;

0 commit comments

Comments
 (0)