diff --git a/library/src/main/java/com/tokenautocomplete/CharacterTokenizer.kt b/library/src/main/java/com/tokenautocomplete/CharacterTokenizer.kt index f840e11..549b308 100644 --- a/library/src/main/java/com/tokenautocomplete/CharacterTokenizer.kt +++ b/library/src/main/java/com/tokenautocomplete/CharacterTokenizer.kt @@ -1,5 +1,7 @@ package com.tokenautocomplete +import android.annotation.SuppressLint +import android.os.Parcelable import android.text.SpannableString import android.text.Spanned import android.text.TextUtils @@ -13,8 +15,8 @@ import java.util.* * @author mgod */ @Parcelize +@SuppressLint("ParcelCreator") open class CharacterTokenizer(private val splitChar: List, private val tokenTerminator: String) : Tokenizer { - override fun containsTokenTerminator(charSequence: CharSequence): Boolean { for (element in charSequence) { if (splitChar.contains(element)) { diff --git a/library/src/main/java/com/tokenautocomplete/TagTokenizer.kt b/library/src/main/java/com/tokenautocomplete/TagTokenizer.kt index 44a0bf5..8c9713c 100644 --- a/library/src/main/java/com/tokenautocomplete/TagTokenizer.kt +++ b/library/src/main/java/com/tokenautocomplete/TagTokenizer.kt @@ -1,9 +1,11 @@ package com.tokenautocomplete +import android.annotation.SuppressLint import kotlinx.parcelize.Parcelize import java.util.* @Parcelize +@SuppressLint("ParcelCreator") open class TagTokenizer constructor(private val tagPrefixes: List) : Tokenizer { internal constructor() : this(listOf('@', '#'))