Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 107 for detect (0.16 sec)

  1. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

      // app (like the FrqUser class above), then the app's ClassLoader will never be gc'd. The reason
      // is that we attempt to run a thread in a separate ClassLoader that will detect when the FRQ
      // is no longer referenced, meaning that the app's ClassLoader has been gc'd, and when that
      // happens. But the thread's supposedly separate ClassLoader actually has a reference to the app's
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/Striped64.java

       * It is possible for a Cell to become unused when threads that
       * once hashed to it terminate, as well as in the case where
       * doubling the table causes no thread to hash to it under
       * expanded mask.  We do not try to detect or remove such cells,
       * under the assumption that for long-running instances, observed
       * contention levels will recur, so the cells will eventually be
       * needed again; and for short-lived ones, it does not matter.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  3. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java

                    }
                }
                if (idx < tok.length) {
                    qualifier = tok[idx++];
                    fallback = isDigits(qualifier);
                }
    
                // string tokenizer won't detect these and ignores them
                if (part1.contains("..") || part1.startsWith(".") || part1.endsWith(".")) {
                    fallback = true;
                }
    
                if (fallback) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Nov 17 15:50:51 GMT 2023
    - 6K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        try {
          new NullPointerTester().testInstanceMethods(instance, visibility);
        } catch (AssertionFailedError expected) {
          return;
        }
        fail("Should detect problem in " + instance.getClass().getSimpleName());
      }
    
      private static void shouldFail(Object instance) {
        shouldFail(instance, Visibility.PACKAGE);
        shouldFail(instance, Visibility.PROTECTED);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

        // load timeout multiplier.  Or we could try to use a CPU time bound instead of wall clock time
        // bound.  But these ideas are harder to implement.  We do not try to detect or handle a
        // user-specified -XX:+DisableExplicitGC.
        //
        // TODO(user): Consider using
        // java/lang/management/OperatingSystemMXBean.html#getSystemLoadAverage()
        //
    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)
  6. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tests for {@link ForwardingWrapperTester}. Live in a different package to detect reflection
     * access issues, if any.
     *
     * @author Ben Yu
     */
    public class ForwardingWrapperTesterTest extends TestCase {
    
      private final ForwardingWrapperTester tester = new ForwardingWrapperTester();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/Striped64.java

       * It is possible for a Cell to become unused when threads that
       * once hashed to it terminate, as well as in the case where
       * doubling the table causes no thread to hash to it under
       * expanded mask.  We do not try to detect or remove such cells,
       * under the assumption that for long-running instances, observed
       * contention levels will recur, so the cells will eventually be
       * needed again; and for short-lived ones, it does not matter.
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ListsTest.java

        assertEquals("2", iterator.next());
        assertEquals("3", iterator.next());
        assertEquals("4", iterator.next());
        assertEquals(4, iterator.nextIndex());
        try {
          iterator.next();
          fail("did not detect end of list");
        } catch (NoSuchElementException expected) {
        }
        assertEquals(3, iterator.previousIndex());
        assertEquals("4", iterator.previous());
        assertEquals("3", iterator.previous());
    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)
  9. android/guava/src/com/google/common/graph/Graphs.java

       * of edges in a graph arranged to form a path (a sequence of adjacent outgoing edges) starting
       * and ending with the same node.
       *
       * <p>This method will detect any non-empty cycle, including self-loops (a cycle of length 1).
       */
      public static <N> boolean hasCycle(Graph<N> graph) {
        int numEdges = graph.edges().size();
        if (numEdges == 0) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/ByteStreams.java

       * method blocks until {@code len} bytes of input data have been read into the array, or end of
       * file is detected. The number of bytes read is returned, possibly zero. Does not close the
       * stream.
       *
       * <p>A caller can detect EOF if the number of bytes read is less than {@code len}. All subsequent
       * calls on the same stream will return zero.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
Back to top