Merge pull request #6233 from thundernest/fix_build_warnings

Fix some build warnings
This commit is contained in:
cketti 2022-08-09 16:35:46 +02:00 committed by GitHub
commit 7fb14730fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 13 additions and 3 deletions

View file

@ -1,5 +1,6 @@
apply plugin: 'java-library'
apply plugin: 'kotlin'
apply plugin: 'com.android.lint'
java {
sourceCompatibility = javaVersion

View file

@ -1,5 +1,6 @@
apply plugin: 'java-library'
apply plugin: 'kotlin'
apply plugin: 'com.android.lint'
java {
sourceCompatibility = javaVersion

View file

@ -1,5 +1,6 @@
apply plugin: 'java-library'
apply plugin: 'kotlin'
apply plugin: 'com.android.lint'
java {
sourceCompatibility = javaVersion

View file

@ -521,11 +521,11 @@ class AccountPreferenceSerializer(
defaultEnum
} else {
try {
java.lang.Enum.valueOf<T>(defaultEnum.declaringClass, stringPref)
java.lang.Enum.valueOf<T>(defaultEnum.declaringJavaClass, stringPref)
} catch (ex: IllegalArgumentException) {
Timber.w(
ex, "Unable to convert preference key [%s] value [%s] to enum of type %s",
key, stringPref, defaultEnum.declaringClass
key, stringPref, defaultEnum.declaringJavaClass
)
defaultEnum

View file

@ -1,5 +1,6 @@
apply plugin: 'java-library'
apply plugin: 'kotlin'
apply plugin: 'com.android.lint'
java {
sourceCompatibility = javaVersion

View file

@ -104,7 +104,7 @@ subprojects {
tasks.withType(KotlinCompile) {
kotlinOptions {
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}
}

View file

@ -1,5 +1,6 @@
apply plugin: 'java-library'
apply plugin: 'kotlin'
apply plugin: 'com.android.lint'
if (rootProject.testCoverage) {
apply plugin: 'jacoco'

View file

@ -1,5 +1,6 @@
apply plugin: 'java-library'
apply plugin: 'kotlin'
apply plugin: 'com.android.lint'
if (rootProject.testCoverage) {
apply plugin: 'jacoco'

View file

@ -1,4 +1,5 @@
apply plugin: 'java-library'
apply plugin: 'com.android.lint'
if (rootProject.testCoverage) {
apply plugin: 'jacoco'

View file

@ -1,5 +1,6 @@
apply plugin: 'java-library'
apply plugin: 'kotlin'
apply plugin: 'com.android.lint'
if (rootProject.testCoverage) {
apply plugin: 'jacoco'

View file

@ -1,4 +1,5 @@
apply plugin: 'java-library'
apply plugin: 'com.android.lint'
if (rootProject.testCoverage) {
apply plugin: 'jacoco'

View file

@ -1,5 +1,6 @@
apply plugin: 'java-library'
apply plugin: 'kotlin'
apply plugin: 'com.android.lint'
if (rootProject.testCoverage) {
apply plugin: 'jacoco'