- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 99 for orElse (0.46 seconds)
-
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategyTest.java
Element build = moduleBRoot.child("build").orElse(null); Element plugins = build.child("plugins").orElse(null); Element plugin = plugins.child("plugin").orElse(null); Element dependencies = plugin.child("dependencies").orElse(null); Element dependency = dependencies.child("dependency").orElse(null); // Apply dependency inference
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 35.2K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategyTest.java
Element build = root.child("build").orElse(null); Element plugins = build.child("plugins").orElse(null); Element cleanPlugin = plugins.child("plugin").orElse(null); Element executions = cleanPlugin.child("executions").orElse(null); Element execution = executions.child("execution").orElse(null); Element phase = execution.child("phase").orElse(null);
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 38.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/crawler/util/FieldConfigsTest.java
assertFalse(fieldConfigs.getConfig("foo").map(FieldConfigs.Config::isCache).orElse(false)); assertFalse(fieldConfigs.getConfig("foo").map(FieldConfigs.Config::isOverwrite).orElse(false)); assertEquals("bar", fieldConfigs.getConfig("foo").map(FieldConfigs.Config::getValues).orElse(new String[0])[0]); } @Test public void test_cache_true() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 3.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/opensearch/config/exentity/ScheduledJob.java
return ComponentUtil.getJobManager().findJobByUniqueOf(LaJobUnique.of(getId())).map(LaScheduledJob::isExecutingNow).orElse(false); } public void start() { ComponentUtil.getJobManager().findJobByUniqueOf(LaJobUnique.of(getId())).ifPresent(job -> { job.launchNow(); }).orElse(() -> { throw new JobNotFoundException(this); }); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 11:55:54 GMT 2026 - 3.6K bytes - Click Count (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild.module-identity.gradle.kts
val computedSuffix = specifiedSuffix .orElse(buildVersionQualifierSuffix) .orElse(buildTimestampSuffix) val baseVersion = trimmedContentsOfFile("version.txt") version = baseVersion.zip(computedSuffix) { base, suffix -> GradleVersion.version("$base$suffix") } snapshot = specifiedSuffix.map { false }.orElse(true) releasedVersions = version.map {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Mar 11 22:46:35 GMT 2026 - 5.8K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategy.java
&& options.modelVersion().isEmpty(); boolean allOptionsDisabled = options.all().map(v -> !v).orElse(false) && options.infer().map(v -> !v).orElse(false) && options.model().map(v -> !v).orElse(false) && options.plugins().map(v -> !v).orElse(false) && options.modelVersion().isEmpty(); if (noOptionsSpecified || allOptionsDisabled) {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 22.2K bytes - Click Count (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildParams.kt
get() = environmentVariable(BUILD_COMMIT_ID) .orElse(gradleProperty(BUILD_PROMOTION_COMMIT_ID)) .orElse(environmentVariable(BUILD_VCS_NUMBER)) .orElse(currentGitCommitViaFileSystemQuery()) val Project.isBuildCommitDistribution: Boolean get() = gradleProperty(BUILD_COMMIT_DISTRIBUTION).map { it.toBoolean() }.orElse(false).get() val Project.buildFinalRelease: Provider<String>
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Jan 19 05:13:29 GMT 2026 - 18K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/duplicatehost/AdminDuplicatehostAction.java
public HtmlResponse list(final OptionalThing<Integer> pageNumber, final SearchForm form) { pageNumber.ifPresent(num -> { duplicateHostPager.setCurrentPageNumber(pageNumber.get()); }).orElse(() -> { duplicateHostPager.setCurrentPageNumber(0); }); return asHtml(path_AdminDuplicatehost_AdminDuplicatehostJsp).renderWith(data -> { searchPaging(data, form); });
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 20 13:56:35 GMT 2025 - 15.6K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategy.java
// Also check inside profiles Element profilesElement = root.child(PROFILES).orElse(null); if (profilesElement != null) { var profileElements = profilesElement.children(PROFILE).toList(); for (Element profileElement : profileElements) { Element profileModulesElement = profileElement.child(MODULES).orElse(null); if (profileModulesElement != null) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 16.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/dataconfig/AdminDataconfigAction.java
public HtmlResponse list(final OptionalThing<Integer> pageNumber, final SearchForm form) { pageNumber.ifPresent(num -> { dataConfigPager.setCurrentPageNumber(pageNumber.get()); }).orElse(() -> { dataConfigPager.setCurrentPageNumber(0); }); return asHtml(path_AdminDataconfig_AdminDataconfigJsp).renderWith(data -> { searchPaging(data, form); }); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 11:54:13 GMT 2026 - 21K bytes - Click Count (0)