Skip to content
Snippets Groups Projects
Verified Commit edf011c4 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fix lint issues

parent 0b797976
Branches
No related tags found
1 merge request!2Draft: Jetpack compose rewrite
Pipeline #576 passed
......@@ -38,7 +38,9 @@ abstract class StringSerializer(
private val encoderLocal = ThreadLocal<StringEncoder>()
private fun encoder() = encoderLocal.getOrSet { StringEncoder(charset) }
@Suppress("NOTHING_TO_INLINE")
private inline fun addNullBytes(before: Int) = if (nullLimited) before + 1 else before
@Suppress("NOTHING_TO_INLINE")
private inline fun removeNullBytes(before: Int) = if (nullLimited) before - 1 else before
override fun serialize(buffer: ChainedByteBuffer, data: String?, featureSet: FeatureSet) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment