Get rid of redundant Jsr305State
This commit is contained in:
+4
-1
@@ -55,10 +55,13 @@ fun getDefaultJsr305Settings(): Jsr305Settings {
|
||||
} else {
|
||||
jsr305Settings.reportLevelBefore
|
||||
}
|
||||
val migrationLevel = if (globalReportLevel == ReportLevel.WARN) null else globalReportLevel
|
||||
val migrationLevel = getDefaultMigrationJsr305ReportLevelForGivenGlobal(globalReportLevel)
|
||||
return Jsr305Settings(globalReportLevel, migrationLevel)
|
||||
}
|
||||
|
||||
fun getDefaultMigrationJsr305ReportLevelForGivenGlobal(globalReportLevel: ReportLevel) =
|
||||
if (globalReportLevel == ReportLevel.WARN) null else globalReportLevel
|
||||
|
||||
fun getDefaultReportLevelForAnnotation(annotationFqName: FqName) = getReportLevelForAnnotation(annotationFqName, emptyMap())
|
||||
|
||||
fun getReportLevelForAnnotation(annotation: FqName, configuredReportLevels: Map<FqName, ReportLevel>): ReportLevel {
|
||||
|
||||
Reference in New Issue
Block a user