- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 23 for orElseThrow (0.74 sec)
-
impl/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java
} private Lifecycle getLifeCycleById(String id) { return defaultLifeCycles.getLifeCycles().stream() .filter(l -> id.equals(l.getId())) .findFirst() .orElseThrow(IllegalArgumentException::new); }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 3.9K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/PrecedenceCoreExtensionSelector.java
if (coreExtensions.isEmpty() || coreExtensions.get().isEmpty()) { return List.of(); } return selectCoreExtensions( context, context.invokerRequest.coreExtensions().orElseThrow()); } /** * Selects extensions to load discovered from various sources by precedence ("first wins"), as * {@link InvokerRequest#coreExtensions()} is in precedence order. Also reports conflicts, if any.
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Sep 29 15:32:43 UTC 2025 - 4.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/AccessTokenService.java
stream(request.getParameterValues(name)).of(stream -> stream.filter(StringUtil::isNotBlank).forEach(permissionSet::add)); return OptionalEntity.of(permissionSet); }).orElseThrow(() -> new InvalidAccessTokenException("invalid_token", "Invalid token: " + token)); } return OptionalEntity.empty(); }
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 5.5K bytes - Viewed (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."),Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sun Dec 14 01:18:25 UTC 2025 - 20.2K bytes - Viewed (3) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlan.java
return Optional.ofNullable(plan.get(project)).map(m -> m.get(name)); } public BuildStep requiredStep(MavenProject project, String name) { return step(project, name).orElseThrow(() -> new NoSuchElementException("Step " + name + " not found")); } // add a follow-up plan to this one public void then(BuildPlan step) { step.plan.forEach((k, v) -> plan.merge(k, v, this::merge));
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Mar 28 12:11:25 UTC 2025 - 6.1K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 12K bytes - Viewed (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);
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Thu Oct 02 14:18:24 UTC 2025 - 10.4K bytes - Viewed (0) -
api/maven-api-xml/src/main/java/org/apache/maven/api/xml/XmlService.java
private static final class Holder { static final XmlService INSTANCE = ServiceLoader.load(XmlService.class) .findFirst() .orElseThrow(() -> new IllegalStateException("No XmlService implementation found")); private Holder() {} }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Apr 03 13:33:59 UTC 2025 - 9.2K bytes - Viewed (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.Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 12.9K bytes - Viewed (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()Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 39.6K bytes - Viewed (0)