- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 78 for isPresent (0.06 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketWriterTest.kt
* exceptions thrown from the test do not cause this check to fail. */ @RegisterExtension val noDataLeftBehind = AfterEachCallback { context: ExtensionContext -> if (context.executionException.isPresent) return@AfterEachCallback assertThat(data.readByteString().hex(), "Data not empty") .isEqualTo("") } // Mutually exclusive. Use the one corresponding to the peer whose behavior you wish to test.Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 9.3K bytes - Click Count (0) -
build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/tasks/DistributionTest.kt
jvmArgumentProviders.add(srcDistributionZip) } override fun executeTests() { cachesCleaner.get().cleanUpCaches() if (tracker.isPresent) { val daemonTrackerService = tracker.get() val testListener = daemonTrackerService.javaClass.getMethod("newDaemonListener").invoke(daemonTrackerService) as TestListener
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Aug 18 18:02:41 GMT 2025 - 7.7K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Dec 17 16:17:01 GMT 2025 - 10.9K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/DomUtils.java
* <pre>{@code * // Find child element * Element child = parent.child("version").orElse(null); * * // Check if child exists * boolean hasVersion = parent.child("version").isPresent(); * * // Get child text content * String version = parent.child("version") * .map(Element::textContent) * .orElse(null); * * // Get trimmed text content
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 7.4K bytes - Click Count (0) -
architecture/standards/0006-use-of-provider-apis-in-gradle.md
```groovy public interface NewThing { Property<String> getSomeProperty() } // Unacceptable String value if (!getSomeProperty().isPresent()) { value = "convention" } else { value = getSomeProperty().get() } // Also unacceptable String value = getSomeProperty().getOrElse("convention") // This should be always:Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Oct 15 20:00:57 GMT 2024 - 10K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoal.java
// Determine target model version // Default to 4.0.0 unless --all is specified or explicit --model-version is provided String targetModel; if (options.modelVersion().isPresent()) { targetModel = options.modelVersion().get(); } else if (options.all().orElse(false)) { targetModel = MODEL_VERSION_4_1_0; } else {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 12.5K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategy.java
*/ private String determineTargetModelVersion(UpgradeContext context) { UpgradeOptions options = getOptions(context); if (options.modelVersion().isPresent()) { return options.modelVersion().get(); } else if (options.all().orElse(false)) { return MODEL_VERSION_4_1_0; } else { return MODEL_VERSION_4_0_0; }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 16.6K bytes - Click Count (0) -
android/guava/src/com/google/common/net/InternetDomainName.java
*/ private static boolean matchesType( Optional<PublicSuffixType> desiredType, Optional<PublicSuffixType> actualType) { return desiredType.isPresent() ? desiredType.equals(actualType) : actualType.isPresent(); } /** Returns the domain name, normalized to all lower case. */ @Override public String toString() { return name; } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 27.9K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java
* <p> * <strong>Implementation Note:</strong> The default implementation is equivalent to: * </p> * <pre>{@code * Optional<Path> configured = targetPath(); * if (configured.isPresent() && configured.get().isAbsolute()) { * return configured.get(); * } * Path outputDir = project.getOutputDirectory(scope()); * return configured.map(outputDir::resolve).orElse(outputDir);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-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategy.java
if (noOptionsSpecified || allOptionsDisabled) { return true; } // Check if --model is explicitly set (and not part of "all disabled" scenario) if (options.model().isPresent()) { return options.model().get(); } return false; } @Override public String getDescription() { return "Applying Maven 4 compatibility fixes";Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 22.2K bytes - Click Count (0)