Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for detector (0.15 sec)

  1. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     *       to check for a cycle that reaches the lock to be acquired. If no cycle is detected, a new
     *       "safe" edge is created.
     *   <li>If a cycle is detected, an "unsafe" (cyclic) edge is created to represent a potential
     *       deadlock situation, and the appropriate Policy is executed.
     * </ul>
     *
     * <p>Note that detection of potential deadlock does not necessarily indicate that deadlock will
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Throwables.java

        throw new RuntimeException(throwable);
      }
    
      /**
       * Returns the innermost cause of {@code throwable}. The first throwable in a chain provides
       * context from when the error or exception was initially detected. Example usage:
       *
       * <pre>
       * assertEquals("Unable to assign a customer id", Throwables.getRootCause(e).getMessage());
       * </pre>
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Throwables.java

        throw new RuntimeException(throwable);
      }
    
      /**
       * Returns the innermost cause of {@code throwable}. The first throwable in a chain provides
       * context from when the error or exception was initially detected. Example usage:
       *
       * <pre>
       * assertEquals("Unable to assign a customer id", Throwables.getRootCause(e).getMessage());
       * </pre>
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/JdkBackedImmutableMap.java

    @ElementTypesAreNonnullByDefault
    final class JdkBackedImmutableMap<K, V> extends ImmutableMap<K, V> {
      /**
       * Creates an {@code ImmutableMap} backed by a JDK HashMap. Used when probable hash flooding is
       * detected. This implementation may replace the entries in entryArray with its own entry objects
       * (though they will have the same key/value contents), and will take ownership of entryArray.
       */
      static <K, V> ImmutableMap<K, V> create(
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  5. 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)
  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. android/guava/src/com/google/common/reflect/TypeResolver.java

            return;
          }
          // First, check whether var -> arg forms a cycle
          for (Type t = arg; t != null; t = mappings.get(TypeVariableKey.forLookup(t))) {
            if (var.equalsType(t)) {
              // cycle detected, remove the entire cycle from the mapping so that
              // each type variable resolves deterministically to itself.
              // Otherwise, an F -> T cycle will end up resolving both F and T
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 24.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableSet.java

          }
          maxRunBeforeFallback = maxRunBeforeFallback(newTableSize);
          expandTableThreshold = (int) (DESIRED_LOAD_FACTOR * newTableSize);
        }
    
        /**
         * We attempt to detect deliberate hash flooding attempts. If one is detected, we fall back to a
         * wrapper around j.u.HashSet, which has built-in flooding protection. MAX_RUN_MULTIPLIER was
         * determined experimentally to match our desired probability of false positives.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/collect/ImmutableSetHashFloodingDetectionBenchmark.java

                  // There are only maxRunBeforeFallback - 1 elements between here and there,
                  // so even if they were all nonnull, we wouldn't detect a hash flood.  Therefore,
                  // we can skip them all.
                  knownRunStart += maxRunBeforeFallback;
                } else {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jun 03 20:16:35 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  10. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
Back to top