Skip to content

Commit

Permalink
use the sharedLockFreePool as default pool instead of allocating a ne…
Browse files Browse the repository at this point in the history
…w one
  • Loading branch information
mariofusco committed Mar 27, 2024
1 parent c73bde2 commit a99467b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ public final class JsonRecyclerPools
/**
* Method to call to get the default recycler pool instance:
* as of Jackson 2.17 this is same as calling
* {@link #newLockFreePool()}; earlier
* {@link #sharedLockFreePool()}; earlier
*
* @return the default {@link RecyclerPool} implementation to use
* if no specific implementation desired.
*/
public static RecyclerPool<BufferRecycler> defaultPool() {
return newLockFreePool();
return sharedLockFreePool();
}

/**
Expand Down

0 comments on commit a99467b

Please sign in to comment.