Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for orElseGet (0.07 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java

                            .map(org.apache.maven.api.services.Source::getPath)
                            .orElse(null))
                    .filter(Objects::nonNull)
                    .findFirst()
                    .orElseGet(() -> modelLocator.locatePom(projectDirectory));
            if (!pom.equals(projectDirectory) && !pom.getParent().equals(projectDirectory)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. 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(),
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/sso/spnego/SpnegoAuthenticator.java

                if (logger.isDebugEnabled()) {
                    logger.debug("username: {}", Arrays.toString(username));
                }
                return new SpnegoCredential(username[0]);
            }).orElseGet(() -> null);
    
        }
    
        protected static class SpengoConfig implements FilterConfig {
    
            @Override
            public String getFilterName() {
                return SpnegoAuthenticator.class.getName();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

                            .filter(p -> artifact.equals(p.getArtifact()))
                            .map(MavenProject::getRemoteArtifactRepositories)
                            .findFirst()
                            .orElseGet(() -> getRepositoriesFromModel(repositorySession, model));
                } else {
                    pomRepositories = new ArrayList<>();
                }
            } else if (artifact instanceof ArtifactWithDependencies) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

                            .findFirst()
                            .map(project -> project.getBuild().getDirectory())
                            .map(Paths::get)
                            .orElseGet(() -> root.resolve("target"))
                            .resolve(PROJECT_LOCAL_REPO);
                } else {
                    return root.resolve("target").resolve(PROJECT_LOCAL_REPO);
                }
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  6. 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.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. 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);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 27.5K bytes
    - Viewed (1)
Back to top