Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for enforce (0.19 sec)

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

       * that would be a problem because it violates small-test rules. Note that we strip the
       * suppression externally, but it's OK because we don't enforce test-size rules there.)
       *
       * We'd just use PackageSanityTests directly, saving us from needing this separate type, but we're
       * currently skipping MediumTests on Android, and we skip them by not making them present at
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jun 11 21:37:55 GMT 2019
    - 5.3K bytes
    - Viewed (0)
  2. android/guava-testlib/test/com/google/common/testing/AbstractPackageSanityTestsTest.java

       * that would be a problem because it violates small-test rules. Note that we strip the
       * suppression externally, but it's OK because we don't enforce test-size rules there.)
       *
       * We'd just use PackageSanityTests directly, saving us from needing this separate type, but we're
       * currently skipping MediumTests on Android, and we skip them by not making them present at
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 11 21:37:55 GMT 2019
    - 5.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Funnel.java

     * serialization of funnels. When possible, it is recommended that funnels be implemented as a
     * single-element enum to maintain serialization guarantees. See Effective Java (2nd Edition), Item
     * 3: "Enforce the singleton property with a private constructor or an enum type". For example:
     *
     * <pre>{@code
     * public enum PersonFunnel implements Funnel<Person> {
     *   INSTANCE;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java

      }
    
      @Override
      protected Map<Class<? extends @NonNull B>, B> delegate() {
        return delegate;
      }
    
      /**
       * Wraps the {@code setValue} implementation of an {@code Entry} to enforce the class constraint.
       */
      private static <B extends @Nullable Object> Entry<Class<? extends @NonNull B>, B> checkedEntry(
          final Entry<Class<? extends @NonNull B>, B> entry) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/annotations/VisibleForTesting.java

     * that they will. If the method breaks the encapsulation of its class, then its internal
     * representation will be hard to change. Instead, use <a
     * href="http://errorprone.info/bugpattern/RestrictedApi">RestrictedApiChecker</a>, which enforces
     * fine-grained visibility policies.
     *
     * @author Johannes Henkel
     */
    @GwtCompatible
    public @interface VisibleForTesting {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 30 22:25:16 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/CommonPattern.java

    @ElementTypesAreNonnullByDefault
    abstract class CommonPattern {
      public abstract CommonMatcher matcher(CharSequence t);
    
      public abstract String pattern();
    
      public abstract int flags();
    
      // Re-declare this as abstract to force subclasses to override.
      @Override
      public abstract String toString();
    
      public static CommonPattern compile(String pattern) {
        return Platform.compilePattern(pattern);
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Apr 09 00:52:54 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/CommonPattern.java

    @ElementTypesAreNonnullByDefault
    abstract class CommonPattern {
      public abstract CommonMatcher matcher(CharSequence t);
    
      public abstract String pattern();
    
      public abstract int flags();
    
      // Re-declare this as abstract to force subclasses to override.
      @Override
      public abstract String toString();
    
      public static CommonPattern compile(String pattern) {
        return Platform.compilePattern(pattern);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 09 00:52:54 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableMapFloodingTest.java

            return ImmutableMap.builder()
                .putAll(Lists.transform(keys, k -> Maps.immutableEntry(k, "dummy value")))
                .buildOrThrow();
          }
        },
        FORCE_JDK {
          @Override
          public Map<Object, Object> create(List<?> keys) {
            ImmutableMap.Builder<Object, Object> builder = ImmutableMap.builder();
            for (Object k : keys) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  9. guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

    import java.lang.annotation.RetentionPolicy;
    import java.lang.reflect.Method;
    import java.util.Locale;
    import junit.framework.TestCase;
    
    /**
     * Since annotations have some reusability issues that force copy and paste all over the place, it's
     * worth having a test to ensure that all our Feature enums have their annotations correctly set up.
     *
     * @author George van den Driessche
     */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

     * strategies.
     *
     * <ul>
     *   <li>SafeAtomicHelper: uses Atomic FieldsUpdaters to implement synchronization
     *   <li>SynchronizedHelper: uses {@code synchronized} blocks for synchronization
     * </ul>
     *
     * To force selection of our fallback strategies we load {@link AggregateFutureState} (and all of
     * {@code com.google.common.util.concurrent}) in degenerate class loaders which make certain
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.9K bytes
    - Viewed (0)
Back to top