Skip to content

Commit

Permalink
Make SerializedPayload implement AutoClosable
Browse files Browse the repository at this point in the history
  • Loading branch information
ds58 committed Feb 13, 2025
1 parent 2a2c2ed commit 3a5a303
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* @author Jesper Smith
*
*/
public class SerializedPayload
public class SerializedPayload implements AutoCloseable
{
static
{
Expand Down Expand Up @@ -125,7 +125,8 @@ public ByteBuffer getData()
return data;
}

public void release()
@Override
public void close() throws Exception
{
dataPointer.close();
}
Expand Down

0 comments on commit 3a5a303

Please sign in to comment.