Modernizer configuration to disable forcing the Optional.orElseThrow construct

This commit is contained in:
Arnold Galovics
2023-04-17 10:56:45 +02:00
committed by Arnold Gálovics
parent 09632c0c41
commit 234583c8e1
+4
View File
@@ -611,6 +611,10 @@ configure(project.fineractJavaProjects) {
violationLogLevel="error"
javaVersion = project.targetCompatibility
ignoreGeneratedClasses = true
// Rules can be found here: https://github.com/gaul/modernizer-maven-plugin/blob/master/modernizer-maven-plugin/src/main/resources/modernizer.xml
exclusions = [
'java/util/Optional.get:()Ljava/lang/Object;' // Disable forcing the usage of Optional.orElseThrow(java.util.function.Supplier<? extends X>)
]
}
}