Add test for DI constructability of UnlockSoneAjaxPage
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / utils / AutoCloseableBucket.kt
1 package net.pterodactylus.sone.utils
2
3 import freenet.support.api.Bucket
4
5 class AutoCloseableBucket(val bucket: Bucket) : AutoCloseable {
6
7         override fun close() {
8                 bucket.free()
9         }
10
11 }