Skip to content

Commit

Permalink
Suppress erroneous parcel creator lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mgod committed Aug 23, 2021
1 parent 7cc0d9a commit 9b4ffe7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -13,8 +15,8 @@ import java.util.*
* @author mgod
*/
@Parcelize
@SuppressLint("ParcelCreator")
open class CharacterTokenizer(private val splitChar: List<Char>, private val tokenTerminator: String) : Tokenizer {

override fun containsTokenTerminator(charSequence: CharSequence): Boolean {
for (element in charSequence) {
if (splitChar.contains(element)) {
Expand Down
2 changes: 2 additions & 0 deletions library/src/main/java/com/tokenautocomplete/TagTokenizer.kt
Original file line number Diff line number Diff line change
@@ -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<Char>) : Tokenizer {

internal constructor() : this(listOf<Char>('@', '#'))
Expand Down

0 comments on commit 9b4ffe7

Please sign in to comment.