- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 76 for IllegalArgumentException (1.68 sec)
-
maven-api-impl/src/main/java/org/apache/maven/internal/impl/Utils.java
import java.util.stream.Collectors; class Utils { static <T> T nonNull(T t) { if (t == null) { throw new IllegalArgumentException(); } return t; } static <T> T nonNull(T t, String name) { if (t == null) { throw new IllegalArgumentException(name + " cannot be null"); } return t; } static <T> T cast(Class<T> clazz, Object o, String name) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Apr 12 10:50:18 UTC 2024 - 1.8K bytes - Viewed (0) -
maven-embedder/src/main/java/org/apache/maven/cli/transfer/FileSizeFormat.java
if (progressedSize < 0L) { throw new IllegalArgumentException("progressed file size cannot be negative: " + size); } if (size >= 0 && progressedSize > size) { throw new IllegalArgumentException( "progressed file size cannot be greater than size: " + progressedSize + " > " + size); }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Jun 11 21:48:41 UTC 2024 - 6.6K bytes - Viewed (0) -
maven-slf4j-provider/src/test/java/org/apache/maven/slf4j/MavenSimpleLoggerTest.java
Exception suppressed = new IllegalStateException("suppressed", causeOfSuppressed); suppressed.addSuppressed(new IllegalArgumentException( "suppressed suppressed", new ArrayIndexOutOfBoundsException("suppressed suppressed cause"))); Exception cause = new IllegalArgumentException("cause"); cause.addSuppressed(suppressed); Exception throwable = new RuntimeException("top-level", cause);
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Feb 28 23:31:59 UTC 2024 - 4K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformationTest.java
assertFalse(rtInfo.isMavenVersion("[9.0,)")); assertThrows( IllegalArgumentException.class, () -> rtInfo.isMavenVersion("[3.0,"), "Bad version range wasn't rejected"); assertThrows( IllegalArgumentException.class, () -> rtInfo.isMavenVersion(""), "Bad version range wasn't rejected"); assertThrows(
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Feb 28 07:40:37 UTC 2024 - 2.2K bytes - Viewed (0) -
maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java
* @throws IllegalArgumentException when */ public void setRequestType(final int requestType) { switch (requestType) { case REQUEST_PUT: break; case REQUEST_GET: break; default: throw new IllegalArgumentException("Illegal request type: " + requestType); }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Sep 06 08:39:32 UTC 2023 - 7.7K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactInstaller.java
*/ @Experimental public interface ArtifactInstaller extends Service { /** * @param request {@link ArtifactInstallerRequest} * @throws ArtifactInstallerException in case of an error * @throws IllegalArgumentException in case {@code request} is {@code null} */ void install(@Nonnull ArtifactInstallerRequest request); /** * @param session the repository session
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Nov 17 15:52:15 UTC 2023 - 2.9K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPluginXmlFactory.java
Reader reader = request.getReader(); InputStream inputStream = request.getInputStream(); if (path == null && url == null && reader == null && inputStream == null) { throw new IllegalArgumentException("path, url, reader or inputStream must be non null"); } try { PluginDescriptorStaxReader xml = new PluginDescriptorStaxReader();
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Mar 25 10:50:01 UTC 2024 - 5K bytes - Viewed (0) -
maven-di/src/main/java/org/apache/maven/di/impl/Types.java
throw new IllegalArgumentException("Multiple upper bounds not supported: " + original); } Type[] lowerBounds = wildcardType.getLowerBounds(); if (lowerBounds.length == 1) { return simplifyType(lowerBounds[0]); } else if (lowerBounds.length > 1) { throw new IllegalArgumentException("Multiple lower bounds not supported: " + original);
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Apr 12 10:50:18 UTC 2024 - 26.9K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultChecksumAlgorithmService.java
nonNull(algorithmName, "algorithmName"); try { return new DefaultChecksumAlgorithm(checksumAlgorithmFactorySelector.select(algorithmName)); } catch (IllegalArgumentException e) { throw new ChecksumAlgorithmServiceException("unsupported algorithm", e); } } @Override public Collection<ChecksumAlgorithm> select(Collection<String> algorithmNames) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Mar 25 10:50:01 UTC 2024 - 7.4K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java
if (relativeSource.isAbsolute()) { throw new IllegalArgumentException("Supplied URI is not relative"); } URI source = baseURI.resolve(relativeSource); if (!source.toASCIIString().startsWith(baseURI.toASCIIString())) { throw new IllegalArgumentException("Supplied relative URI escapes baseUrl"); } GetTask getTask = new GetTask(source);
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu May 02 16:33:18 UTC 2024 - 5.3K bytes - Viewed (0)