From 60a65f952350173c641bf75707a2ab27fa8fa426 Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Mon, 13 Feb 2023 19:17:00 -0500 Subject: [PATCH] [java] Further condense the is allowed check --- .../mycila/maven/plugin/license/dependencies/LicensePolicy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/license-maven-plugin/src/main/java/com/mycila/maven/plugin/license/dependencies/LicensePolicy.java b/license-maven-plugin/src/main/java/com/mycila/maven/plugin/license/dependencies/LicensePolicy.java index c0eba6bb5..7e1656d29 100644 --- a/license-maven-plugin/src/main/java/com/mycila/maven/plugin/license/dependencies/LicensePolicy.java +++ b/license-maven-plugin/src/main/java/com/mycila/maven/plugin/license/dependencies/LicensePolicy.java @@ -54,7 +54,7 @@ public boolean getPredicate() { * @return true, if is allowed */ public boolean isAllowed(final boolean matched) { - return (matched && allowed) || (!matched && !allowed); + return matched == allowed; } public static Rule valueOf(final boolean allowed) {