- Sort Score
- Result 10 results
- Languages All
Results 351 - 360 of 1,922 for Try (0.1 sec)
-
src/test/java/org/codelibs/core/collection/SLinkedListTest.java
assertThat(list.getEntry(1).getElement(), is("2")); assertThat(list.getEntry(2).getElement(), is("3")); try { list.getEntry(-1); fail(); } catch (final ClIndexOutOfBoundsException ex) { System.out.println(ex); } try { list.getEntry(3); fail(); } catch (final ClIndexOutOfBoundsException ex) {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 8.3K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java
Path projectDirectory = pomFile.getParent(); List<ModelParserException> exceptions = new ArrayList<>(); for (ModelParser parser : modelParsers) { try { Optional<Model> model = parser.locateAndParse(projectDirectory, options); if (model.isPresent()) { return model.get().withPomFile(pomFile); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8.5K bytes - Viewed (0) -
tensorflow/api_template.__init__.py
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Oct 02 22:16:02 UTC 2024 - 6.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt
* operation, it will be re-interrupted after the list is read. */ private fun readTheListUninterruptibly() { var interrupted = false try { while (true) { try { readTheList() return } catch (_: InterruptedIOException) { Thread.interrupted() // Temporarily clear the interrupted state. interrupted = true
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 11.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/QueuesTest.java
@SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored Future<?> possiblyIgnoredError = threadPool.submit(new Interrupter(currentThread())); try { Queues.drain(q, ImmutableList.of(), 100, MAX_VALUE, NANOSECONDS); fail(); } catch (InterruptedException expected) { } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 12.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java
expectUnchanged(); expectMissing(e3()); } @MapFeature.Require(absent = SUPPORTS_PUT) @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) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 4.8K bytes - Viewed (0) -
samples/crawler/src/main/java/okhttp3/sample/Crawler.java
} private void parallelDrainQueue(int threadCount) { ExecutorService executor = Executors.newFixedThreadPool(threadCount); for (int i = 0; i < threadCount; i++) { executor.execute(() -> { try { drainQueue(); } catch (Exception e) { e.printStackTrace(); } }); } executor.shutdown(); } private void drainQueue() throws Exception {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Aug 12 07:26:27 UTC 2021 - 4.6K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/MessageDigestHashFunction.java
} private static MessageDigest getMessageDigest(String algorithmName) { try { return MessageDigest.getInstance(algorithmName); } catch (NoSuchAlgorithmException e) { throw new AssertionError(e); } } @Override public Hasher newHasher() { if (supportsClone) { try { return new MessageDigestHasher((MessageDigest) prototype.clone(), bytes);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 25 20:32:46 UTC 2022 - 5K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingQueue.java
* you may wish to override {@link #offer} to forward to this implementation. * * @since 7.0 */ protected boolean standardOffer(@ParametricNullness E e) { try { return add(e); } catch (IllegalStateException caught) { return false; } } /** * A sensible definition of {@link #peek} in terms of {@link #element}. If you override {@link
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 29 19:42:21 UTC 2021 - 4.1K bytes - Viewed (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java
server.setHandler(handlers); } public void start() { try { server.start(); } catch (final Exception e) { throw new CrawlerSystemException(e); } } public void stop() { try { server.stop(); server.join(); } catch (final Exception e) {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Nov 07 04:44:10 UTC 2024 - 5K bytes - Viewed (0)