- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for orElseThrow (0.06 seconds)
-
impl/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java
.filter(project -> projectSelector.isMatchingProject(project, selector, reactorDirectory)) .findFirst() .orElseThrow(() -> new MavenExecutionException( "Could not find project to resume reactor build from: " + selector + " vs " + formatProjects(projects),
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 11 16:38:19 GMT 2025 - 18.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/sso/saml/SamlAuthenticator.java
"Failed to process metadata.", e); } }) .orElseThrow(() -> new SsoMessageException( messages -> messages.addErrorsFailedToProcessSsoRequest(UserMessages.GLOBAL_PROPERTY_KEY, "Invalid state."),Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Jan 02 03:13:33 GMT 2026 - 20.2K bytes - Click Count (3) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/info/GlobalBuildInfoPlugin.java
return getAvailableJavaInstallationLocationSteam().filter(installationLocation -> isSameFile(javaHome, installationLocation)) .findFirst() .orElseThrow(() -> new GradleException("Could not locate available Java installation in Gradle registry at: " + javaHome)); } private boolean isSameFile(File javaHome, InstallationLocation installationLocation) { try {
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Aug 17 10:02:58 GMT 2021 - 18.1K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jun 11 13:14:09 GMT 2025 - 12K bytes - Click Count (0) -
docs/smb3-features/03-multi-channel-design.md
} private ChannelInfo selectLeastLoaded(Collection<ChannelInfo> channels) { return channels.stream() .min(Comparator.comparingLong(ChannelInfo::getRequestsPending)) .orElseThrow(); } private ChannelInfo selectWeightedRandom(Collection<ChannelInfo> channels) { // Calculate total weight int totalWeight = channels.stream()Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 39.6K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleJavadocsPlugin.java
try (Stream<String> lines = Files.lines(file.toPath())) { String packageLine = lines.filter(line -> line.startsWith("package")) .findFirst() .orElseThrow(() -> new IOException("Can't find package definition in file " + file)); Matcher matcher = pattern.matcher(packageLine); if (matcher.find()) { return matcher.group(1);
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Sun Mar 01 05:52:34 GMT 2026 - 11.6K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/GenerateReleaseNotesTask.java
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Wed Sep 01 06:25:29 GMT 2021 - 12.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java
*/ public String getServerPath() { return getSessionManager().getAttribute(Constants.SEARCH_ENGINE_API_ACCESS_TOKEN, String.class) .map(token -> ADMIN_SERVER + token) .orElseThrow(() -> new FessSystemException("Cannot create an access token.")); } /** * Generates and saves a new access token for the current session. * The token is used to authenticate API requests.Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:40 GMT 2026 - 13.4K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Optional.java
* * <ul> * <li>This class is serializable; {@code java.util.Optional} is not. * <li>{@code java.util.Optional} has the additional methods {@code ifPresent}, {@code filter}, * {@code flatMap}, and {@code orElseThrow}. * <li>{@code java.util} offers the primitive-specialized versions {@code OptionalInt}, {@code * OptionalLong} and {@code OptionalDouble}, the use of which is recommended; Guava does not * have these. * </ul>
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 15.4K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/BwcVersions.java
return groupByMajor.getOrDefault(key, emptyList()) .stream() .max(Version::compareTo) .orElseThrow(() -> new IllegalStateException("Unexpected number of versions in collection")); } private Map<Integer, List<Version>> getReleasedMajorGroupedByMinor() {
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 16.8K bytes - Click Count (0)