diff options
author | PJ Fanning <fanningpj@apache.org> | 2021-07-07 13:37:46 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2021-07-07 13:37:46 +0000 |
commit | 5e7d8d8483068c573cdc7f48bd566c2b6f5f2b21 (patch) | |
tree | a4f17a0d0008a6c6092e6d2a69a8fbd07038ae8b | |
parent | d7d18d90935bdcb7bfd4eb26c736ae56b280f6c1 (diff) | |
download | poi-5e7d8d8483068c573cdc7f48bd566c2b6f5f2b21.tar.gz poi-5e7d8d8483068c573cdc7f48bd566c2b6f5f2b21.zip |
convert indents to spaces
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1891363 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | poi/src/test/java/org/apache/poi/util/ConditionalExecution.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/poi/src/test/java/org/apache/poi/util/ConditionalExecution.java b/poi/src/test/java/org/apache/poi/util/ConditionalExecution.java index f77d556749..5b6da6f69f 100644 --- a/poi/src/test/java/org/apache/poi/util/ConditionalExecution.java +++ b/poi/src/test/java/org/apache/poi/util/ConditionalExecution.java @@ -72,14 +72,14 @@ public class ConditionalExecution { public ConditionEvaluationResult evaluateExecutionCondition(ExtensionContext context) { String version = Runtime.class.getPackage().getImplementationVersion(); try { - return findAnnotation(context.getElement(), DisabledOnJreEx.class).filter(annotation -> !isEnabled(annotation)) - .map(annotation -> disabled("PatchLevel skipped", "JRE version " + version + " skipped")) - .orElseGet(() -> enabled("PatchLevel not matched")); - } catch (IllegalAccessError e) { - // cannot access org.junit.platform.commons.util.AnnotationUtils when run in JPMS - // for now let's ignore this check and report "enabled" - return ConditionEvaluationResult.enabled("Cannot check annotation: " + e); - } + return findAnnotation(context.getElement(), DisabledOnJreEx.class).filter(annotation -> !isEnabled(annotation)) + .map(annotation -> disabled("PatchLevel skipped", "JRE version " + version + " skipped")) + .orElseGet(() -> enabled("PatchLevel not matched")); + } catch (IllegalAccessError e) { + // cannot access org.junit.platform.commons.util.AnnotationUtils when run in JPMS + // for now let's ignore this check and report "enabled" + return ConditionEvaluationResult.enabled("Cannot check annotation: " + e); + } } boolean isEnabled(DisabledOnJreEx annotation) { @@ -87,9 +87,9 @@ public class ConditionalExecution { Preconditions.condition(versions.length > 0, "You must declare at least one JRE version in @DisabledOnJreEx"); String version1 = Runtime.class.getPackage().getImplementationVersion(); if (version1 == null) { - // revert to system-property if no implementation version is available - version1 = System.getProperty("java.version"); - } + // revert to system-property if no implementation version is available + version1 = System.getProperty("java.version"); + } String version = version1; return Arrays.stream(versions).noneMatch(p -> Pattern.matches(p, version)); } |