- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,131 for throws (0.05 sec)
-
android/guava-tests/test/com/google/common/base/SuppliersTest.java
for (Thread t : threads) { t.join(); } if (thrown.get() != null) { throw thrown.get(); } assertEquals(1, count.get()); } @J2ktIncompatible @GwtIncompatible // Thread @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races public void testSynchronizedSupplierThreadSafe() throws InterruptedException { final Supplier<Integer> nonThreadSafe =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/SuppliersTest.java
for (Thread t : threads) { t.join(); } if (thrown.get() != null) { throw thrown.get(); } assertEquals(1, count.get()); } @J2ktIncompatible @GwtIncompatible // Thread @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races public void testSynchronizedSupplierThreadSafe() throws InterruptedException { final Supplier<Integer> nonThreadSafe =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.9K bytes - Viewed (0) -
guava/src/com/google/common/io/CharSource.java
* it does. * * @throws IOException if an I/O error occurs while reading from this source or if {@code * processor} throws an {@code IOException} * @since 16.0 */ @CanIgnoreReturnValue // some processors won't return a useful result @ParametricNullness public <T extends @Nullable Object> T readLines(LineProcessor<T> processor) throws IOException { checkNotNull(processor);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 25.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ThrowablesTest.java
SomeCheckedException cause = new SomeCheckedException(); SomeChainingException thrown = new SomeChainingException(cause); assertThat(thrown).hasCauseThat().isSameInstanceAs(cause); assertThat(getCauseAs(thrown, SomeCheckedException.class)).isSameInstanceAs(cause); assertThat(getCauseAs(thrown, Exception.class)).isSameInstanceAs(cause); ClassCastException expected = assertThrows(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 14.6K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java
protected File getLocalRepositoryPath() throws FileNotFoundException, URISyntaxException { File markerFile = getFileForClasspathResource("local-repo/marker.txt"); return markerFile.getAbsoluteFile().getParentFile(); } protected static File getFileForClasspathResource(String resource) throws FileNotFoundException, URISyntaxException {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java
* available. * * @throws InterruptedException if the current thread was interrupted before or during the call * (optional but recommended). * @throws CancellationException {@inheritDoc} */ @CanIgnoreReturnValue @Override public V get(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException, ExecutionException { return sync.get(unit.toNanos(timeout)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 13.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java
.isEqualTo("I bet you didn't think Thread.interrupt could throw"); // We need to wait for the runner to exit. It used to be that the runner would get stuck in the // busy loop when interrupt threw. runner.join(SECONDS.toMillis(10)); } static final class BrokenChannel extends AbstractInterruptibleChannel { @Override protected void implCloseChannel() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 6.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableBiMap.java
final ImmutableSet<V> createValues() { throw new AssertionError("should never be called"); } /** * Guaranteed to throw an exception and leave the bimap unmodified. * * @throws UnsupportedOperationException always * @deprecated Unsupported operation. */ @CanIgnoreReturnValue @Deprecated @Override @DoNotCall("Always throws UnsupportedOperationException") @CheckForNull
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 22.6K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAssemblerTest.java
* @throws IOException Model read problem */ @Test void testFlatUrls() throws IOException { testInheritance("flat-urls"); } /** * MNG-5951 MNG-6059 child.x.y.inherit.append.path="false" test * @throws Exception */ @Test void testNoAppendUrls() throws Exception { testInheritance("no-append-urls"); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 7.9K bytes - Viewed (0) -
compat/maven-settings-builder/src/test/java/org/apache/maven/settings/validation/DefaultSettingsValidatorTest.java
/** */ class DefaultSettingsValidatorTest { private DefaultSettingsValidator validator; @BeforeEach void setUp() throws Exception { validator = new DefaultSettingsValidator(new DefaultSettingsBuilder()); } @AfterEach void tearDown() throws Exception { validator = null; } private void assertContains(String msg, String substring) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8.6K bytes - Viewed (0)