Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 100 for suppression (0.11 sec)

  1. android/guava-tests/test/com/google/common/collect/LegacyComparable.java

     * that support Java 1.4 and before. Our library needs to do the bare minimum to accommodate such
     * types, though their use may still require an explicit type parameter and/or warning suppression.
     *
     * @author Kevin Bourrillion
     */
    @SuppressWarnings({"ComparableType", "rawtypes"}) // https://github.com/google/guava/issues/989
    @GwtCompatible
    @NullMarked
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

            ValuesImpl() {
              super(AsMap.this);
            }
    
            @Override
            /*
             * For discussion of equality in Multimap value collections, see the suppression for
             * UndefinedEquals in AbstractMapBasedMultimap.
             */
            @SuppressWarnings("UndefinedEquals")
            public boolean remove(@Nullable Object o) {
              if (o instanceof Collection) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Joiner.java

       */
      @CanIgnoreReturnValue
      public final <A extends Appendable> A appendTo(A appendable, @Nullable Object[] parts)
          throws IOException {
        @SuppressWarnings("nullness") // TODO: b/316358623 - Remove suppression after fixing checker
        List<?> partsList = Arrays.<@Nullable Object>asList(parts);
        return appendTo(appendable, partsList);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 15:16:19 UTC 2025
    - 21K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Joiner.java

       */
      @CanIgnoreReturnValue
      public final <A extends Appendable> A appendTo(A appendable, @Nullable Object[] parts)
          throws IOException {
        @SuppressWarnings("nullness") // TODO: b/316358623 - Remove suppression after fixing checker
        List<?> partsList = Arrays.<@Nullable Object>asList(parts);
        return appendTo(appendable, partsList);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/AndroidIncompatible.java

     * I'm not completely sure that this is the right choice, but it has various advantages:
     *
     * <ul>
     *   <li>An annotation named just "Suppress" might someday be treated by a non-Android tool as a
     *       suppression. This would follow the precedent of many of our annotation processors, which
     *       look for any annotation named, e.g., "GwtIncompatible," regardless of package.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 07 15:40:13 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableCollection.java

      public final Object[] toArray() {
        return toArray(EMPTY_ARRAY);
      }
    
      @CanIgnoreReturnValue
      @Override
      /*
       * This suppression is here for two reasons:
       *
       * 1. b/192354773 in our checker affects toArray declarations.
       *
       * 2. `other[size] = null` is unsound. We could "fix" this by requiring callers to pass in an
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

       * test, or to keep dependent builds clean in spite of an erroneous test.
       */
      @CanIgnoreReturnValue
      public B suppressing(Method... methods) {
        return suppressing(asList(methods));
      }
    
      @CanIgnoreReturnValue
      public B suppressing(Collection<Method> methods) {
        suppressedTests.addAll(methods);
        return self();
      }
    
      public Set<Method> getSuppressedTests() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableSet.java

       * @since 7.0 (source-compatible since 2.0)
       */
      // This the best we could do to get copyOfEnumSet to compile in the mainline.
      // The suppression also covers the cast to E[], discussed below.
      // In the backport, we don't have those cases and thus don't need this suppression.
      // We keep it to minimize diffs.
      @SuppressWarnings("unchecked")
      public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) {
        /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableCollection.java

      public final Object[] toArray() {
        return toArray(EMPTY_ARRAY);
      }
    
      @CanIgnoreReturnValue
      @Override
      /*
       * This suppression is here for two reasons:
       *
       * 1. b/192354773 in our checker affects toArray declarations.
       *
       * 2. `other[size] = null` is unsound. We could "fix" this by requiring callers to pass in an
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/Closer.java

      }
    
      @VisibleForTesting final Suppressor suppressor;
    
      // only need space for 2 elements in most cases, so try to use the smallest array possible
      private final Deque<Closeable> stack = new ArrayDeque<>(4);
      private @Nullable Throwable thrown;
    
      @VisibleForTesting
      Closer(Suppressor suppressor) {
        this.suppressor = checkNotNull(suppressor); // checkNotNull to satisfy null tests
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top