Search Options

Results per page
Sort
Preferred Languages
Advance

Results 491 - 500 of 2,167 for latch (0.04 sec)

  1. android/guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

        ClassWhichDoesNotImplementEquals orig = new ClassWhichDoesNotImplementEquals();
        boolean errorNotThrown = false;
        try {
          SerializableTester.reserializeAndAssert(orig);
          errorNotThrown = true;
        } catch (AssertionFailedError error) {
          // expected
          assertContains("must be Object#equals to", error.getMessage());
        }
        assertFalse(errorNotThrown);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

        ClassWhichDoesNotImplementEquals orig = new ClassWhichDoesNotImplementEquals();
        boolean errorNotThrown = false;
        try {
          SerializableTester.reserializeAndAssert(orig);
          errorNotThrown = true;
        } catch (AssertionFailedError error) {
          // expected
          assertContains("must be Object#equals to", error.getMessage());
        }
        assertFalse(errorNotThrown);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/ShareEnumIterator.java

                        continue;
                    }
                    return nr;
                }
                catch ( CIFSException e ) {
                    log.error("Failed to apply filter", e);
                    continue;
                }
                catch ( MalformedURLException e ) {
                    log.error("Failed to create child URL", e);
                    continue;
                }
            }
            return null;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/query/DefaultQueryBuilderTest.java

            try {
                new DefaultQueryBuilder(null);
                fail();
            } catch (IllegalArgumentException e) {
                // nothing
            }
        }
    
        public void test_invalid_query() {
            try {
                new DefaultQueryBuilder(QueryBuilders.matchAllQuery());
                fail();
            } catch (IllegalArgumentException e) {
                // nothing
            }
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 11 08:26:36 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

            fail("Expected IllegalStateException");
          } catch (IllegalStateException expected) {
          }
        }
        assertEquals(expectHost, hp.getHost());
    
        // Check the post-withDefaultPort() instance (if any).
        if (!badDefaultPort) {
          try {
            int port = hp2.getPort();
            assertTrue(expectPort != -1);
            assertEquals(expectPort, port);
          } catch (IllegalStateException e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java

                    Object obj = interpolationTargets.removeFirst();
    
                    try {
                        traverseObjectWithParents(obj.getClass(), obj);
                    } catch (ModelInterpolationException e) {
                        return e;
                    }
                }
    
                return null;
            }
    
            @SuppressWarnings({"unchecked", "checkstyle:methodlength"})
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

            try {
                uni = password.getBytes( SmbConstants.UNI_ENCODING );
            } catch( UnsupportedEncodingException uee ) {
                if( log.level > 0 )
                    uee.printStackTrace( log );
            }
            MD4 md4 = new MD4();
            md4.update( uni );
            try {
                md4.digest(p21, 0, 16);
            } catch (Exception ex) {
                if( log.level > 0 )
                    ex.printStackTrace( log );
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 22.5K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/math/ApacheBenchmark.java

              int unused = IntMath.checkedAdd(a, b);
              return true;
            } catch (ArithmeticException e) {
              return false;
            }
          }
    
          @Override
          public boolean noAddOverflow(long a, long b) {
            try {
              long unused = LongMath.checkedAdd(a, b);
              return true;
            } catch (ArithmeticException e) {
              return false;
            }
          }
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 6.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

              try {
                MILLISECONDS.sleep(DELAY_MS);
              } catch (InterruptedException e) {
                throw new RuntimeException(e);
              }
            }
          };
      private static final Runnable BAD_RUNNABLE =
          new Runnable() {
            @Override
            public void run() {
              try {
                MILLISECONDS.sleep(DELAY_MS);
              } catch (InterruptedException e) {
                throw new RuntimeException(e);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/PerCallSettings.kt

            .readTimeout(500, TimeUnit.MILLISECONDS)
            .build()
        try {
          client1.newCall(request).execute().use { response ->
            println("Response 1 succeeded: $response")
          }
        } catch (e: IOException) {
          println("Response 1 failed: $e")
        }
    
        // Copy to customize OkHttp for this request.
        val client2 =
          client.newBuilder()
            .readTimeout(3000, TimeUnit.MILLISECONDS)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top