Skip to content

Commit

Permalink
Change BufferRecyclerProvider to interface; remove (for now) unnecess…
Browse files Browse the repository at this point in the history
…ary release-method
  • Loading branch information
cowtowncoder committed Aug 22, 2023
1 parent 751f51e commit 11247b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@
*
* @since 2.16
*/
public abstract class BufferRecyclerProvider
implements java.io.Serializable
public interface BufferRecyclerProvider
extends java.io.Serializable
{
private static final long serialVersionUID = 1L;

public abstract BufferRecycler acquireBufferRecycler(TokenStreamFactory forFactory);

public abstract void releaseBufferRecycler(BufferRecycler r);
}
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public static BufferRecyclerProvider defaultProvider() {
* @since 2.16
*/
public static class ThreadLocalBufferRecyclerProvider
extends BufferRecyclerProvider
implements BufferRecyclerProvider
{
private static final long serialVersionUID = 1L;

Expand All @@ -213,10 +213,5 @@ public static class ThreadLocalBufferRecyclerProvider
public BufferRecycler acquireBufferRecycler(TokenStreamFactory forFactory) {
return getBufferRecycler();
}

@Override
public void releaseBufferRecycler(BufferRecycler r) {
; // nothing to do here
}
}
}

0 comments on commit 11247b8

Please sign in to comment.