Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for orElseThrow (0.05 sec)

  1. impl/maven-core/src/test/java/org/apache/maven/project/ResourceIncludeTest.java

            // Find the resource with the custom directory
            Resource customResource = resources.stream()
                    .filter(r -> r.getDirectory().endsWith("custom"))
                    .findFirst()
                    .orElseThrow(() -> new AssertionError("Custom resource not found"));
    
            // Verify targetPath was preserved through conversion chain
            assertEquals(
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Nov 07 13:11:07 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  2. 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),
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 11 16:38:19 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  3. 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)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java

                DispatcherMeta meta = secDispatcher.availableDispatchers().stream()
                        .filter(d -> Objects.equals(config.getDefaultDispatcher(), d.name()))
                        .findFirst()
                        .orElseThrow();
                if (!meta.fields().isEmpty()) {
                    dispatcherConfigResult = prompt.prompt(
                            context.header,
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 12K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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>
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

                MavenProject rootProject = session.getAllProjects().stream()
                        .filter(MavenProject::isExecutionRoot)
                        .findFirst()
                        .orElseThrow(() -> new IllegalStateException("No project in the session is execution root"));
    
                buildResumptionAnalyzer.determineBuildResumptionData(result).ifPresent(resumption -> {
                    try {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon May 05 16:58:52 UTC 2025
    - 28.7K bytes
    - Viewed (1)
Back to top