Skip to content

Commit e395425

Browse files
committed
Add deallocate method for ThreadLocalObjectAllocator
1 parent 2f5e86c commit e395425

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/main/java/de/bethibande/serial/allocation/ThreadLocalObjectAllocator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ public T allocate() {
1919
return holder.get();
2020
}
2121

22+
public void deallocate() {
23+
holder.remove();
24+
}
25+
2226
}

0 commit comments

Comments
 (0)