Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1831 - 1840 of 2,310 for rethrow (0.04 seconds)

  1. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/extension/GradleModuleExtension.kt

                        when (it) {
                            true -> Optional.of(entry.value)
                            false -> Optional.empty()
                        }
                    }.orElse(provider {
                        throw GradleException("Expected boolean flag to be configured")
                    })
                }
                .reduce { acc, next ->
                    acc.zip(next) { left , right ->
                        when {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 11 22:40:18 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java

      }
    
      @CollectionSize.Require(ZERO)
      @ListFeature.Require(absent = SUPPORTS_SET)
      public void testSet_unsupportedByEmptyList() {
        try {
          getList().set(0, e3());
          fail("set() should throw UnsupportedOperationException or IndexOutOfBoundsException");
        } catch (UnsupportedOperationException | IndexOutOfBoundsException expected) {
        }
        expectUnchanged();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testPutIfAbsent_unsupportedPresentExistingValue() {
        try {
          assertEquals(
              "putIfAbsent(present, existingValue) should return present or throw",
              v0(),
              getMap().putIfAbsent(k0(), v0()));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 16 02:04:51 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java

            try {
                return settingsBuilder.build(request).getEffectiveSettings();
            } catch (SettingsBuildingException e) {
                throw new IOException(e.getMessage(), e);
            }
        }
    
        /** @since 2.1 */
        @Override
        public Settings buildSettings(MavenExecutionRequest request) throws IOException, XmlPullParserException {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java

                            }));
    
            context.setProjectDirectory(tempDir.toFile());
    
            File file = new File(tempDir.resolve("file.txt").toString());
            if (!file.createNewFile()) {
                throw new IOException("Can't create " + file);
            }
        }
    
        @Test
        void testRootDirectoryWithNull() {
            context.setProjectDirectory(null);
    
            IllegalStateException e = assertThrows(
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  6. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/MavenInvokerTestSupport.java

                    System.err.println("===================================================");
    
                    logs.put(goal, stdout.toString());
                    if (exception != null) {
                        throw exception;
                    } else {
                        assertEquals(0, exitCode, "OUT:" + stdout + "\nERR:" + stderr);
                    }
                }
            }
            return logs;
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Oct 21 12:17:55 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultProjectArtifactFactory.java

                try {
                    dependencyArtifact = createDependencyArtifact(artifactFactory, d, inheritedScope, dependencyFilter);
                } catch (InvalidVersionSpecificationException e) {
                    throw new InvalidDependencyVersionException(project.getId(), d, project.getFile(), e);
                }
    
                if (dependencyArtifact != null) {
                    artifacts.add(dependencyArtifact);
                }
            }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupContext.java

                }
            }
            if (causes != null) {
                InvokerException exception = new InvokerException("Unable to close context");
                causes.forEach(exception::addSuppressed);
                throw exception;
            }
        }
    
        public final void closeContainer() throws Exception {
            if (containerCapsuleManaged) {
                doCloseContainer();
            }
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  9. build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/util/Util.java

                return defaultValue;
            }
            if ("true".equals(propertyValue)) {
                return true;
            } else if ("false".equals(propertyValue)) {
                return false;
            } else {
                throw new GradleException("Sysprop [" + property + "] must be [true] or [false] but was [" + propertyValue + "]");
            }
        }
    
        /**
         * @param project The project to look for resources.
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jul 27 15:18:50 GMT 2021
    - 5.1K bytes
    - Click Count (0)
  10. build-tools-internal/src/integTest/java/org/elasticsearch/gradle/internal/SymbolicLinkPreservingTarIT.java

                        assertThat(entry.getLinkName(), anyOf(equalTo("./real-folder"), equalTo(".\\real-folder")));
                        linkToRealFolderEntry = true;
                    } else {
                        throw new GradleException("unexpected entry [" + entry.getName() + "]");
                    }
                    if (preserveFileTimestamps) {
                        assertTrue(entry.getModTime().getTime() > 0);
                    } else {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 6.6K bytes
    - Click Count (0)
Back to Top