- Sort Score
- Num 10 results
- Language All
Results 421 - 430 of 2,371 for try (0.04 seconds)
-
compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/AbstractStringBasedModelInterpolator.java
} for (InterpolationPostProcessor postProcessor : postProcessors) { interpolator.addPostProcessor(postProcessor); } try { try { result = interpolator.interpolate(result, recursionInterceptor); } catch (InterpolationException e) { throw new ModelInterpolationException(e.getMessage(), e);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 13.6K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java
expectUnchanged(); assertEquals("remove(present) should not remove the element", v0(), get(k0())); } @MapFeature.Require(absent = SUPPORTS_REMOVE) public void testRemove_unsupportedNotPresent() { try { assertNull( "remove(notPresent) should return null or throw UnsupportedOperationException", getMap().remove(k3())); } catch (UnsupportedOperationException tolerated) { }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 5.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SimpleMemoryManagementTest.java
SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport); // Test try-with-resources assertTrue(session.isInUse(), "Session should be in use initially"); try (SmbSessionImpl autoSession = session) { // Session is already in use due to transport acquisition
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 5.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/crawler/interval/FessIntervalController.java
*/ @Override protected void delayForWaitingNewUrl() { try { ComponentUtil.getSystemHelper().calibrateCpuLoad(); } catch (final Exception e) { if (logger.isDebugEnabled()) { logger.debug("Failed to calibrate CPU load", e); } } try {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Nov 19 07:09:17 GMT 2025 - 5.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndXResponse.java
// Fortunately we don't really need nativeFileSystem for anything. // However, we'll try to read it safely for compatibility if (this.byteCount > bufferIndex - start) { try { // Attempt to read nativeFileSystem, but don't fail if there are issues final int fsLen = this.byteCount - (bufferIndex - start);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
boolean isInBounds = expected.compareTo(MAX_INT_AS_BIG_DECIMAL) <= 0 & expected.compareTo(MIN_INT_AS_BIG_DECIMAL) >= 0; try { assertEquals(expected.intValue(), DoubleMath.roundToInt(d, mode)); assertTrue(isInBounds); } catch (ArithmeticException e) { assertFalse(isInBounds); } } }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 03 16:20:39 GMT 2026 - 27.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/admin/SchedulerTests.java
testDelete(); } @Test void testStartJob_notFound() { // Try to start a non-existent job checkPutMethod(new HashMap<>(), "invalid_scheduler_id_12345/start").then().body("response.status", equalTo(1)); } @Test void testStopJob_notFound() { // Try to stop a non-existent job
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 2.8K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/util/ports/ReservedPortRange.java
*/ int allocate() { try { lock.lock(); return getAvailablePort(); } finally { lock.unlock(); } } /** * Deallocate the given port * * @param port The port to deallocate */ public void deallocate(int port) { try { lock.lock();Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 2.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/StatsTesting.java
if (expectedStats.count() == 0) { try { actualStats.mean(); fail("Expected IllegalStateException"); } catch (IllegalStateException expected) { } try { actualStats.populationVariance(); fail("Expected IllegalStateException"); } catch (IllegalStateException expected) { } try { actualStats.min();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 24K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Internal.java
@IgnoreJRERequirement static long toNanosSaturated(Duration duration) { // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for // durations longer than approximately +/- 292 years). try { return duration.toNanos(); } catch (ArithmeticException tooBig) { return duration.isNegative() ? Long.MIN_VALUE : Long.MAX_VALUE; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Apr 14 15:16:19 GMT 2025 - 1.9K bytes - Click Count (0)