Take into account user defined jsr-305 annotations
This commit is contained in:
+2
-1
@@ -169,7 +169,8 @@ class JavaTypeEnhancementStateParser(
|
|||||||
return Jsr305Settings(
|
return Jsr305Settings(
|
||||||
globalLevel = globalLevel,
|
globalLevel = globalLevel,
|
||||||
migrationLevel = migration ?: getDefaultMigrationJsr305ReportLevelForGivenGlobal(globalLevel),
|
migrationLevel = migration ?: getDefaultMigrationJsr305ReportLevelForGivenGlobal(globalLevel),
|
||||||
userDefinedLevelForSpecificAnnotation = defaultSettings.userDefinedLevelForSpecificAnnotation
|
userDefinedLevelForSpecificAnnotation = userDefined.takeIf { it.isNotEmpty() }
|
||||||
|
?: defaultSettings.userDefinedLevelForSpecificAnnotation
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user