- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for orElseThrow (0.26 sec)
-
api/maven-api-core/src/main/java/org/apache/maven/api/services/ExtensibleEnumRegistry.java
public interface ExtensibleEnumRegistry<T extends ExtensibleEnum> extends Service { @Nonnull Optional<T> lookup(@Nonnull String id); @Nonnull default T require(@Nonnull String id) { return lookup(id).orElseThrow(() -> new IllegalArgumentException("Unknown extensible enum value '" + id + "'")); }
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Wed Feb 28 23:54:53 GMT 2024 - 1.3K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/TypeRegistry.java
* * @param id the id of the type to retrieve * @return the type */ @Nonnull @Override default Type require(@Nonnull String id) { return lookup(id).orElseThrow(() -> new IllegalArgumentException("Unknown extensible enum value '" + id + "'")); }
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 1.6K bytes - Viewed (0) -
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); }
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 4.3K bytes - Viewed (0) -
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),
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Tue Dec 05 09:23:26 GMT 2023 - 18.5K 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(); }
Java - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 4.6K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/ResolutionScope.java
public static ResolutionScope fromString(String id) { return Optional.ofNullable(VALUES.get(id)) .orElseThrow(() -> new IllegalArgumentException("Unknown resolution scope " + id)); } private final String id; private final Set<Scope> scopes; ResolutionScope(String id, Scope... scopes) {
Java - Registered: Sun Feb 04 03:35:10 GMT 2024 - Last Modified: Fri Dec 08 08:42:44 GMT 2023 - 3.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/sso/saml/SamlAuthenticator.java
messages -> messages.addErrorsFailedToProcessSsoRequest(UserMessages.GLOBAL_PROPERTY_KEY, e.getMessage()), "Failed to process metadata.", e); } }).orElseThrow(() -> new SsoMessageException( messages -> messages.addErrorsFailedToProcessSsoRequest(UserMessages.GLOBAL_PROPERTY_KEY, "Invalid state."),
Java - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 15.2K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilderResult.java
this.problems.addAll(result.getProblems()); for (String modelId : result.getModelIds()) { this.modelIds.add(modelId); this.rawModels.put(modelId, result.getRawModel(modelId).orElseThrow()); this.activePomProfiles.put(modelId, result.getActivePomProfiles(modelId)); } } @Override public Model getFileModel() { return fileModel; }
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 7.1K 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.")); } public void saveToken() {
Java - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 9.4K bytes - Viewed (0) -
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 {
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 27.5K bytes - Viewed (0)