Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Hope (0.16 sec)

  1. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        t.start();
        return t;
      }
    
      /**
       * Waits for the specified time (in milliseconds) for the thread to terminate (using {@link
       * Thread#join(long)}), else interrupts the thread (in the hope that it may terminate later) and
       * fails.
       */
      void awaitTermination(Thread t, long timeoutMillis) {
        try {
          t.join(timeoutMillis);
        } catch (InterruptedException ie) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

                  @Override
                  protected void finalize() {
                    finalizerRan.countDown();
                  }
                });
    
        await(finalizerRan);
        awaitClear(ref);
    
        // Hope to catch some stragglers queued up behind our finalizable object
        System.runFinalization();
      }
    
      private static RuntimeException formatRuntimeException(String format, Object... args) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/project/MavenProject.java

     * There is still the issue of having to run the lifecycle in order to find all the compile source roots and resource
     * directories but I hope to take care of this during the Maven 4.0 release (jvz).
     * </p>
     */
    public class MavenProject implements Cloneable {
    
        private static final Logger LOGGER = LoggerFactory.getLogger(MavenProject.class);
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 56.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        t.start();
        return t;
      }
    
      /**
       * Waits for the specified time (in milliseconds) for the thread to terminate (using {@link
       * Thread#join(long)}), else interrupts the thread (in the hope that it may terminate later) and
       * fails.
       */
      void awaitTermination(Thread t, long timeoutMillis) {
        try {
          t.join(timeoutMillis);
        } catch (InterruptedException ie) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

             * large that doing the lookup is noticeably slower than redoing the work would be.
             *
             * Ideally we'd have a real eviction policy, but until we see a problem in practice, I hope
             * that this will suffice. I have not even benchmarked with different size limits.
             */
            if (validClasses.size() > 1000) {
              validClasses.clear();
            }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/GcFinalization.java

                  @Override
                  protected void finalize() {
                    finalizerRan.countDown();
                  }
                });
    
        await(finalizerRan);
        awaitClear(ref);
    
        // Hope to catch some stragglers queued up behind our finalizable object
        System.runFinalization();
      }
    
      private static RuntimeException formatRuntimeException(String format, Object... args) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java

      @ListFeature.Require(absent = {SUPPORTS_SET, SUPPORTS_ADD_WITH_INDEX})
      public void testListIterator_unmodifiable() {
        runListIteratorTest(UNMODIFIABLE);
      }
    
      /*
       * For now, we don't cope with testing this when the list supports only some
       * modification operations.
       */
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @ListFeature.Require({SUPPORTS_SET, SUPPORTS_ADD_WITH_INDEX})
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ListsTest.java

        // The result of Arrays.asList() is mutable
        otherWay.set(0, "FOO");
        assertEquals("FOO", otherWay.get(0));
    
        // But it can't grow
        try {
          otherWay.add("nope");
          fail("no exception thrown");
        } catch (UnsupportedOperationException expected) {
        }
    
        // And it can't shrink
        try {
          otherWay.remove(2);
          fail("no exception thrown");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java

      @ListFeature.Require(absent = {SUPPORTS_SET, SUPPORTS_ADD_WITH_INDEX})
      public void testListIterator_unmodifiable() {
        runListIteratorTest(UNMODIFIABLE);
      }
    
      /*
       * For now, we don't cope with testing this when the list supports only some
       * modification operations.
       */
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @ListFeature.Require({SUPPORTS_SET, SUPPORTS_ADD_WITH_INDEX})
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ListsTest.java

        // The result of Arrays.asList() is mutable
        otherWay.set(0, "FOO");
        assertEquals("FOO", otherWay.get(0));
    
        // But it can't grow
        try {
          otherWay.add("nope");
          fail("no exception thrown");
        } catch (UnsupportedOperationException expected) {
        }
    
        // And it can't shrink
        try {
          otherWay.remove(2);
          fail("no exception thrown");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
Back to top