- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 4,885 for try1 (0.07 sec)
-
test/recover.go
return } func test5() { v := try(func() { panic(5) }, 55).(int) if v != 5 { println("wrong value", v, 5) die() } s := try(func() {}, "hi").(string) if s != "hi" { println("wrong value", s, "hi") die() } v = try1(func() { panic(5) }, 55).(int) if v != 5 { println("try1 wrong value", v, 5) die() } s = try1(func() {}, "hi").(string) if s != "hi" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 10.6K bytes - Viewed (0) -
platforms/core-runtime/functional/src/main/java/org/gradle/internal/Try.java
* If the callable returns null, then the returned Try instance will hold null as its value. */ public static <U> Try<U> ofFailable(Callable<U> failable) { try { return Try.successful(failable.call()); } catch (Exception e) { return Try.failure(e); } } /** * Construct a {@code Try} representing a successful execution.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 18 08:10:49 UTC 2024 - 10.3K bytes - Viewed (0) -
analysis/analysis-api/testData/components/expressionInfoProvider/isUsedAsExpression/try.txt
expression: TRY text: try { 4 } catch (e: Exception) { 5 } finally { 9 }
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Oct 05 15:06:52 UTC 2022 - 135 bytes - Viewed (0) -
analysis/analysis-api/testData/components/expressionInfoProvider/isUsedAsExpression/try.kt
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Oct 05 15:06:52 UTC 2022 - 118 bytes - Viewed (0) -
src/test/java/jcifs/tests/RandomAccessFileTest.java
try ( SmbFile f = createTestFile() ) { try { try ( SmbFileOutputStream os = f.openOutputStream() ) { os.write(new byte[] { 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7 }); } byte[] buf = new byte[4];
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 11.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
protected Map<K, V> makeEitherMap() { try { return makePopulatedMap(); } catch (UnsupportedOperationException e) { return makeEmptyMap(); } } protected final boolean supportsValuesHashCode(Map<K, V> map) { // get the first non-null value Collection<V> values = map.values(); for (V value : values) { if (value != null) { try { int unused = value.hashCode();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 45.9K bytes - Viewed (0) -
platforms/core-runtime/functional/src/test/groovy/org/gradle/internal/TryTest.groovy
Try.ofFailable { throw runtimeFailure } == Try.failure(runtimeFailure) } def "captures result"() { expect: Try.ofFailable { result } == Try.successful(result) where: result << [['a', 'b', 'c'], "Some string", 5] } def "successful (flat) map"() { expect: Try.successful(10).flatMap { it -> Try.successful(it + 2) } == Try.successful(12)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 18 08:10:49 UTC 2024 - 5.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java
public void testCheckPositive_zeroInt() { try { MathPreconditions.checkPositive("int", 0); fail(); } catch (IllegalArgumentException expected) { } } public void testCheckPositive_maxInt() { MathPreconditions.checkPositive("int", Integer.MAX_VALUE); } public void testCheckPositive_minInt() { try { MathPreconditions.checkPositive("int", Integer.MIN_VALUE);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 8.2K bytes - Viewed (0) -
src/test/java/jcifs/tests/FileOperationsTest.java
int bufSize = 65536; long length = 4096 * 16; try ( SmbFile f = createTestFile() ) { try ( SmbFile d1 = createTestDirectory(); SmbFile t = new SmbFile(d1, makeRandomName()) ) { try { try ( OutputStream os = f.getOutputStream() ) { ReadWriteTest.writeRandom(bufSize, length, os);
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Thu Jan 05 13:17:59 UTC 2023 - 16.3K bytes - Viewed (0) -
src/test/java/jcifs/tests/FileAttributesTest.java
try ( SmbResource f = createTestFile() ) { try { assertCloseTime(f.createTime()); } finally { f.delete(); } } } @Test public void testSetCreated () throws CIFSException, MalformedURLException, UnknownHostException { try ( SmbResource f = createTestFile() ) {
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Thu Jan 05 13:09:03 UTC 2023 - 12.3K bytes - Viewed (0)