- Sort Score
- Result 10 results
- Languages All
Results 1531 - 1540 of 1,808 for try (0.01 sec)
-
guava/src/com/google/common/util/concurrent/ListenableFuture.java
* create a {@link SettableFuture} instead. (If your needs are more complex, you may prefer * {@link AbstractFuture}.) * </ul> * * <p><b>Test doubles</b>: If you need a {@code ListenableFuture} for your test, try a {@link * SettableFuture} or one of the methods in the {@link Futures#immediateFuture Futures.immediate*} * family. <b>Avoid</b> creating a mock or stub {@code Future}. Mock and stub implementations areRegistered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 8K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TextUtil.java
boolean isSpace = false; int alphanumSize = 0; int symbolSize = 0; int c; final Set<String> termCache = new HashSet<>(1000); try { while ((c = reader.read()) != -1) { if (Character.isISOControl(c) || isSpaceChar(c)) { if (duplicateTermRemoved) {Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 12K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/log/allcommon/EsAbstractBehavior.java
} esCb.request().build(builder); SearchResponse response = esCb.build(builder).execute().actionGet(scrollSearchTimeout); String scrollId = response.getScrollId(); try { while (scrollId != null) { final SearchHits searchHits = getSearchHits(response); final SearchHit[] hits = searchHits.getHits(); if (hits.length == 0) {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jun 21 04:02:44 UTC 2025 - 26.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Queues.java
long timeout, TimeUnit unit) { Preconditions.checkNotNull(buffer); long deadline = System.nanoTime() + unit.toNanos(timeout); int added = 0; boolean interrupted = false; try { while (added < numElements) { // we could rely solely on #poll, but #drainTo might be more efficient when there are // multiple elements already available (e.g. LinkedBlockingQueue#drainTo locks only once)Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 18.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/MemoryUtilTest.java
} public void test_byteCountToDisplaySize_edgeCases() { // Test negative values - should throw NullPointerException in private method via BigInteger.valueOf try { MemoryUtil.byteCountToDisplaySize(-1L); // If no exception, verify it handles negative as expected } catch (Exception e) { // Expected for negative values }Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 11.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt
client .newBuilder() .protocols(listOf(Protocol.H2_PRIOR_KNOWLEDGE)) .socketFactory(socketFactory) .addNetworkInterceptor( Interceptor { chain -> try { chain.proceed(chain.request()) } finally { firstConnectLatch.countDown() } }, ).build() // Set up a same-connection retry.Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 10.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/general/AdminGeneralAction.java
dataMap.put("hostname", systemHelper.getHostname()); final FessConfig fessConfig = ComponentUtil.getFessConfig(); final Postbox postbox = ComponentUtil.getComponent(Postbox.class); try { TestmailPostcard.droppedInto(postbox, postcard -> { postcard.setFrom(fessConfig.getMailFromAddress(), fessConfig.getMailFromName()); postcard.addReplyTo(fessConfig.getMailReturnPath());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 13.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableBiMap.java
int valueBucket = Hashing.smear(valueHash) & mask; ImmutableMapEntry<K, V> nextInKeyBucket = keyTable[keyBucket]; ImmutableMapEntry<K, V> nextInValueBucket = valueTable[valueBucket]; try { checkNoConflictInKeyBucket(key, value, nextInKeyBucket, /* throwIfDuplicateKeys= */ true); checkNoConflictInValueBucket(value, entry, nextInValueBucket); } catch (BucketOverflowException e) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
when(pipe.ensureTreeConnected()).thenReturn(tree); when(tree.acquire()).thenReturn(tree); // method returns itself per implementation // Act: call twice try (SmbTreeHandleImpl t1 = target.ensureTreeConnected(); SmbTreeHandleImpl t2 = target.ensureTreeConnected()) { assertSame(tree, t1); assertSame(tree, t2); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java
} public void testSpanSingleRange() { for (Range<Integer> range : RANGES) { RangeMap<Integer, Integer> rangeMap = TreeRangeMap.create(); rangeMap.put(range, 1); try { assertEquals(range, rangeMap.span()); assertFalse(range.isEmpty()); } catch (NoSuchElementException e) { assertTrue(range.isEmpty()); } } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 30K bytes - Viewed (0)