projects
/
Sone.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Replace some events with Kotlin versions
[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
}