Kotlin replacement for math util
This commit is contained in:
parent
4967faf212
commit
a3bacf7b89
|
@ -72,7 +72,7 @@ class AeronOutput : Output {
|
||||||
constructor(bufferSize: Int = 32) {
|
constructor(bufferSize: Int = 32) {
|
||||||
require(bufferSize >= 0) { "bufferSize must be >= 0!" }
|
require(bufferSize >= 0) { "bufferSize must be >= 0!" }
|
||||||
// Minimum buffer size allowed is size = 2 (because it grows by 1.5x the current size)
|
// Minimum buffer size allowed is size = 2 (because it grows by 1.5x the current size)
|
||||||
internalBuffer = ExpandableDirectByteBuffer(Math.max(2, bufferSize))
|
internalBuffer = ExpandableDirectByteBuffer(2.coerceAtLeast(bufferSize))
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user