- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for orElseGet (0.07 seconds)
-
okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt
testClient?.dispatcher?.executorService?.shutdown() } @SuppressLint("NewApi") private fun ExtensionContext.isFlaky(): Boolean = (testMethod.orElseGet { null }?.isAnnotationPresent(Flaky::class.java) == true) || (testClass.orElseGet { null }?.isAnnotationPresent(Flaky::class.java) == true) @Synchronized private fun logEvents() { // Will be ineffective if test overrides the listener
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 10.8K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTypeRegistry.java
ArtifactHandler handler = manager.getArtifactHandler(id); type = new DefaultType( id, languageRegistry.lookup(handler.getLanguage()).orElseGet(() -> handler::getLanguage), handler.getExtension(), handler.getClassifier(), handler.isIncludesDependencies(),
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed May 14 04:47:58 GMT 2025 - 4K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java
.filter(p -> artifact.equals(p.getArtifact())) .findFirst() .map(MavenProject::getRemoteArtifactRepositories) .orElseGet(() -> getRepositoriesFromModel(repositorySession, model)); } else { pomRepositories = getRepositoriesFromModel(repositorySession, model); } } else {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Sep 25 12:03:50 GMT 2025 - 30.4K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Optional.java
/** * Returns the contained instance if it is present; {@code supplier.get()} otherwise. * * <p><b>Comparison to {@code java.util.Optional}:</b> this method is similar to Java 8's {@code * Optional.orElseGet}, except when {@code supplier} returns {@code null}. In this case this * method throws an exception, whereas the Java 8+ method returns the {@code null} to the caller. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 15.4K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java
Optional<Path> targetPath = targetPath(); // The test for `isAbsolute()` is a small optimization for avoiding the call to `getOutputDirectory(…)`. return targetPath.filter(Path::isAbsolute).orElseGet(() -> { Path base = project.getOutputDirectory(scope()); return targetPath.map(base::resolve).orElse(base); }); } /**
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Nov 07 13:11:07 GMT 2025 - 14.2K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
validateOptionalProfiles(session, request.getProfileActivation()); LifecycleStarter lifecycleStarter = lookup.lookupOptional(LifecycleStarter.class, request.getBuilderId()) .orElseGet(() -> lookup.lookup(LifecycleStarter.class)); lifecycleStarter.execute(session); validateOptionalProjects(request, session);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon May 05 16:58:52 GMT 2025 - 28.7K bytes - Click Count (1) -
impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Dec 15 11:20:38 GMT 2025 - 24.4K bytes - Click Count (0)