Fix code quality and compilation test
This commit is contained in:
parent
c996bcb23c
commit
f030e098a8
|
@ -90,7 +90,7 @@ class SearchMessagesTest : InstrumentedTest {
|
|||
assertTrue(
|
||||
data.results
|
||||
?.all {
|
||||
(it.content?.get("body") as? String)?.startsWith(MESSAGE).orFalse()
|
||||
(it.event.content?.get("body") as? String)?.startsWith(MESSAGE).orFalse()
|
||||
}.orFalse()
|
||||
)
|
||||
lock.countDown()
|
||||
|
@ -154,7 +154,7 @@ class SearchMessagesTest : InstrumentedTest {
|
|||
assertTrue(
|
||||
data.results
|
||||
?.all {
|
||||
(it.content?.get("body") as? String)?.startsWith(MESSAGE).orFalse()
|
||||
(it.event.content?.get("body") as? String)?.startsWith(MESSAGE).orFalse()
|
||||
}.orFalse()
|
||||
)
|
||||
lock.countDown()
|
||||
|
|
|
@ -22,15 +22,22 @@ import com.squareup.moshi.JsonClass
|
|||
|
||||
@JsonClass(generateAdapter = true)
|
||||
internal data class SearchResponseRoomEvents(
|
||||
// List of results in the requested order.
|
||||
/**
|
||||
* List of results in the requested order.
|
||||
*/
|
||||
@Json(name = "results")
|
||||
val results: List<SearchResponseItem>? = null,
|
||||
@Json(name = "count")
|
||||
val count: Int? = null,
|
||||
// List of words which should be highlighted, useful for stemming which may change the query terms.
|
||||
/**
|
||||
* List of words which should be highlighted, useful for stemming which may change the query terms.
|
||||
*/
|
||||
@Json(name = "highlights")
|
||||
val highlights: List<String>? = null,
|
||||
// Token that can be used to get the next batch of results, by passing as the next_batch parameter to the next call. If this field is absent, there are no more results.
|
||||
/**
|
||||
* Token that can be used to get the next batch of results, by passing as the next_batch parameter to the next call.
|
||||
* If this field is absent, there are no more results.
|
||||
*/
|
||||
@Json(name = "next_batch")
|
||||
val nextBatch: String? = null
|
||||
)
|
||||
|
|
|
@ -164,7 +164,7 @@ Formatter\.formatShortFileSize===1
|
|||
# android\.text\.TextUtils
|
||||
|
||||
### This is not a rule, but a warning: the number of "enum class" has changed. For Json classes, it is mandatory that they have `@JsonClass(generateAdapter = false)`. If it is ok, change the value in file forbidden_strings_in_code.txt
|
||||
enum class===80
|
||||
enum class===81
|
||||
|
||||
### Do not import temporary legacy classes
|
||||
import org.matrix.android.sdk.internal.legacy.riot===3
|
||||
|
|
Loading…
Reference in New Issue