You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by ar...@apache.org on 2023/04/17 08:56:55 UTC
[fineract] 02/02: Modernizer configuration to disable forcing the Optional.orElseThrow construct
This is an automated email from the ASF dual-hosted git repository.
arnold pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
commit 234583c8e1e6d44f12da76da2dd0541d5f988986
Author: Arnold Galovics <ga...@gmail.com>
AuthorDate: Mon Apr 17 09:25:03 2023 +0200
Modernizer configuration to disable forcing the Optional.orElseThrow construct
---
build.gradle | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/build.gradle b/build.gradle
index 88f9a75eb..24bfd31c8 100644
--- a/build.gradle
+++ b/build.gradle
@@ -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>)
+ ]
}
}