This repository was archived by the owner on Jan 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +19
-15
lines changed
src/main/java/com/wrongwrong/mapk/core Expand file tree Collapse file tree 3 files changed +19
-15
lines changed Original file line number Diff line number Diff line change 11plugins {
2+ id(" maven-publish" )
23 id(" java" )
34 id(" org.jetbrains.kotlin.jvm" ) version " 1.3.61"
45 id(" org.jlleitschuh.gradle.ktlint" ) version " 9.2.1"
@@ -38,20 +39,22 @@ dependencies {
3839 testImplementation(group = " com.google.guava" , name = " guava" , version = " 28.2-jre" )
3940}
4041
41- tasks.compileKotlin {
42- dependsOn(" ktlintFormat" )
43- kotlinOptions {
44- jvmTarget = " 1.8"
45- allWarningsAsErrors = true
42+ tasks {
43+ compileKotlin {
44+ dependsOn(" ktlintFormat" )
45+ kotlinOptions {
46+ jvmTarget = " 1.8"
47+ allWarningsAsErrors = true
48+ }
4649 }
47- }
4850
49- tasks.compileTestKotlin {
50- kotlinOptions {
51- freeCompilerArgs = listOf (" -Xjsr305=strict" )
52- jvmTarget = " 1.8"
51+ compileTestKotlin {
52+ kotlinOptions {
53+ freeCompilerArgs = listOf (" -Xjsr305=strict" )
54+ jvmTarget = " 1.8"
55+ }
56+ }
57+ test {
58+ useJUnitPlatform()
5359 }
54- }
55- tasks.test {
56- useJUnitPlatform()
5760}
Original file line number Diff line number Diff line change 1- kotlin.code.style =official
1+ kotlin.code.style =official
2+ org.gradle.warning.mode =all
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class EnumMapper {
88 * @param <T> enumClass
99 * @return Enum.valueOf
1010 */
11- @ SuppressWarnings ("unchecked" )
11+ @ SuppressWarnings ({ "unchecked" , "rawtypes" } )
1212 static <T > T getEnum (Class <T > clazz , String value ) {
1313 if (value == null || value .isEmpty ()) {
1414 return null ;
You can’t perform that action at this time.
0 commit comments