- Sort Score
- Num 10 results
- Language All
Results 1541 - 1550 of 2,371 for Try (0.04 seconds)
-
android/guava/src/com/google/common/base/Enums.java
* Enums.getField(Sport.GOLF).getAnnotation(Description.class)}. * * @since 12.0 */ public static Field getField(Enum<?> enumValue) { Class<?> clazz = enumValue.getDeclaringClass(); try { return clazz.getDeclaredField(enumValue.name()); } catch (NoSuchFieldException impossible) { throw new AssertionError(impossible); } } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 01 13:41:58 GMT 2025 - 4.8K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/FakeTickerTest.java
@GwtIncompatible // concurrency private void runConcurrentTest(int numberOfThreads, Callable<@Nullable Void> callable) throws Exception { ExecutorService executorService = newFixedThreadPool(numberOfThreads); try { CountDownLatch startLatch = new CountDownLatch(numberOfThreads); CountDownLatch doneLatch = new CountDownLatch(numberOfThreads); for (int i = numberOfThreads; i > 0; i--) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 6.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/ReflectionFreeAssertThrows.java
expectedThrowable + " is not yet supported by ReflectionFreeAssertThrows. Add an entry for it in the" + " map in that class."); } Object result; try { result = supplier.get(); } catch (Throwable t) { if (predicate.apply(t)) { // We are careful to set up INSTANCE_OF to match each Predicate to its target Class. @SuppressWarnings("unchecked")Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ReflectionFreeAssertThrows.java
expectedThrowable + " is not yet supported by ReflectionFreeAssertThrows. Add an entry for it in the" + " map in that class."); } Object result; try { result = supplier.get(); } catch (Throwable t) { if (predicate.apply(t)) { // We are careful to set up INSTANCE_OF to match each Predicate to its target Class. @SuppressWarnings("unchecked")Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.3K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbComNegotiateResponse.java
bufferIndex += server.encryptionKeyLength; if (byteCount > server.encryptionKeyLength) { int len = 0; // Use appropriate string decoding based on Unicode flag try { if ((flags2 & FLAGS2_UNICODE) == FLAGS2_UNICODE) { while (buffer[bufferIndex + len] != (byte) 0x00 || buffer[bufferIndex + len + 1] != (byte) 0x00) { len += 2;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 6K bytes - Click Count (0) -
CLAUDE.md
- Tests use `## Arrange ##`, `## Act ##`, `## Assert ##` comments - Some integration tests require network access ## Important Notes for AI Assistants 1. **Resource Management**: Always use try-with-resources with `CurlResponse`. 2. **Null Safety**: Constructors validate null arguments. Follow this pattern. 3. **Thread Safety**: `RequestProcessor` is single-use per request.
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Thu Jan 08 07:28:24 GMT 2026 - 4.3K bytes - Click Count (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidLog.kt
// java.lang.IllegalArgumentException: Log tag "okhttp3.mockwebserver.MockWebServer" exceeds limit of 23 characters return knownLoggers[loggerName] ?: loggerName.take(23) } fun enable() { try { for ((logger, tag) in knownLoggers) { enableLogging(logger, tag) } } catch (re: RuntimeException) { // Happens with non-robolectric unit tests
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Oct 25 11:16:17 GMT 2025 - 4.3K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/AbstractByteHasher.java
@SuppressWarnings("ByteBufferBackingArray") // We created the array with ByteBuffer.allocate(). @CanIgnoreReturnValue private Hasher update(ByteBuffer scratch, int bytes) { try { update(scratch.array(), 0, bytes); } finally { Java8Compatibility.clear(scratch); } return this; } @Override @CanIgnoreReturnValue public Hasher putByte(byte b) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 12:40:17 GMT 2025 - 3.9K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/BufferCache.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 4.2K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientCreator.java
if (logger.isDebugEnabled()) { logger.debug("loading {}", componentName); } try (CrawlerClient client = crawlerContainer.getComponent(componentName)) { crawlerClientFactory.addClient(regex, client); } catch (final Exception e) { if (logger.isDebugEnabled()) {
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Sun Jul 06 02:13:03 GMT 2025 - 4.5K bytes - Click Count (0)