From b39caeb04df454d07acc673ae6aea73f43aecb66 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 3 Jan 2022 15:27:59 +0100 Subject: [PATCH] 2 new enums --- .../src/main/java/org/commonmark/ext/maths/DisplayMaths.kt | 3 ++- .../src/main/java/org/commonmark/ext/maths/InlineMaths.kt | 3 ++- tools/check/forbidden_strings_in_code.txt | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/commonmark/ext/maths/DisplayMaths.kt b/matrix-sdk-android/src/main/java/org/commonmark/ext/maths/DisplayMaths.kt index a69649640f..b8ee36e724 100644 --- a/matrix-sdk-android/src/main/java/org/commonmark/ext/maths/DisplayMaths.kt +++ b/matrix-sdk-android/src/main/java/org/commonmark/ext/maths/DisplayMaths.kt @@ -19,6 +19,7 @@ import org.commonmark.node.CustomBlock class DisplayMaths(private val delimiter: DisplayDelimiter) : CustomBlock() { enum class DisplayDelimiter { - DOUBLE_DOLLAR, SQUARE_BRACKET_ESCAPED + DOUBLE_DOLLAR, + SQUARE_BRACKET_ESCAPED } } diff --git a/matrix-sdk-android/src/main/java/org/commonmark/ext/maths/InlineMaths.kt b/matrix-sdk-android/src/main/java/org/commonmark/ext/maths/InlineMaths.kt index 799626045d..962b1b8cbf 100644 --- a/matrix-sdk-android/src/main/java/org/commonmark/ext/maths/InlineMaths.kt +++ b/matrix-sdk-android/src/main/java/org/commonmark/ext/maths/InlineMaths.kt @@ -20,7 +20,8 @@ import org.commonmark.node.Delimited class InlineMaths(private val delimiter: InlineDelimiter) : CustomNode(), Delimited { enum class InlineDelimiter { - SINGLE_DOLLAR, ROUND_BRACKET_ESCAPED + SINGLE_DOLLAR, + ROUND_BRACKET_ESCAPED } override fun getOpeningDelimiter(): String { diff --git a/tools/check/forbidden_strings_in_code.txt b/tools/check/forbidden_strings_in_code.txt index 6ca86be095..cbfaf20247 100644 --- a/tools/check/forbidden_strings_in_code.txt +++ b/tools/check/forbidden_strings_in_code.txt @@ -160,7 +160,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 the enum is not used as a Json class, change the value in file forbidden_strings_in_code.txt -enum class===114 +enum class===116 ### Do not import temporary legacy classes import org.matrix.android.sdk.internal.legacy.riot===3