Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 12 for SuppressWarnings (0.4 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/collect/Maps.java

            @SuppressWarnings("unchecked") // unsafe, but Javadoc warns about it
            K k = (K) key;
            return function.apply(k);
          } else {
            return null;
          }
        }
    
        @Override
        public @Nullable V remove(@Nullable Object key) {
          if (backingSet().remove(key)) {
            @SuppressWarnings("unchecked") // unsafe, but Javadoc warns about it
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/Maps.java

            @SuppressWarnings("unchecked") // unsafe, but Javadoc warns about it
            K k = (K) key;
            return function.apply(k);
          } else {
            return defaultValue;
          }
        }
    
        @Override
        public @Nullable V remove(@Nullable Object key) {
          if (backingSet().remove(key)) {
            @SuppressWarnings("unchecked") // unsafe, but Javadoc warns about it
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertThrows(StackOverflowError.class, () -> input.set("foo"));
      }
    
      public void testTransform_errorAfterCancellation() throws Exception {
        class Transformer implements Function<Object, Object> {
          @SuppressWarnings("nullness:initialization.field.uninitialized")
          ListenableFuture<Object> output;
    
          @Override
          public Object apply(Object input) {
            output.cancel(false);
            throw new SomeError();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertThrows(StackOverflowError.class, () -> input.set("foo"));
      }
    
      public void testTransform_errorAfterCancellation() throws Exception {
        class Transformer implements Function<Object, Object> {
          @SuppressWarnings("nullness:initialization.field.uninitialized")
          ListenableFuture<Object> output;
    
          @Override
          public Object apply(Object input) {
            output.cancel(false);
            throw new SomeError();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/cache/LocalCache.java

     *
     * @author Charles Fry
     * @author Bob Lee ({@code com.google.common.collect.MapMaker})
     * @author Doug Lea ({@code ConcurrentHashMap})
     */
    @SuppressWarnings({
      "GoodTime", // lots of violations (nanosecond math)
      "nullness", // too much trouble for the payoff
    })
    @GwtCompatible
    @NullUnmarked // TODO(cpovirk): Annotate for nullness.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    import org.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * @author Charles Fry
     */
    @SuppressWarnings("GuardedBy") // TODO(b/35466881): Fix or suppress.
    @NullUnmarked
    public class LocalCacheTest extends TestCase {
      @AndroidIncompatible
      private static class TestStringCacheGenerator extends TestStringMapGenerator {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/cache/LocalCacheTest.java

    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    import org.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * @author Charles Fry
     */
    @SuppressWarnings("GuardedBy") // TODO(b/35466881): Fix or suppress.
    @NullUnmarked
    public class LocalCacheTest extends TestCase {
      @AndroidIncompatible
      private static class TestStringCacheGenerator extends TestStringMapGenerator {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
  8. guava/src/com/google/common/cache/LocalCache.java

     *
     * @author Charles Fry
     * @author Bob Lee ({@code com.google.common.collect.MapMaker})
     * @author Doug Lea ({@code ConcurrentHashMap})
     */
    @SuppressWarnings({
      "GoodTime", // lots of violations (nanosecond math)
      "nullness", // too much trouble for the payoff
    })
    @GwtCompatible
    @NullUnmarked // TODO(cpovirk): Annotate for nullness.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

              case OPEN:
                break;
            }
            throw new AssertionError(status);
          }
          future.addListener(() -> provideValueAndCloser(consumer, this), executor);
        }
    
        @SuppressWarnings("Interruption") // We are propagating an interrupt from a caller.
        boolean cancel(boolean mayInterruptIfRunning) {
          logger.get().log(FINER, "cancelling {0}", closingFutureToString());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 101.7K bytes
    - Click Count (0)
  10. compat/maven-model/src/main/java/org/apache/maven/model/merge/ModelMerger.java

     * method, which by default return the object itself and is expected to be overridden to calculate better suited key
     * value.
     *
     * @author Benjamin Bentmann
     */
    @SuppressWarnings({"checkstyle:methodname"})
    public class ModelMerger {
    
        /**
         * Merges the specified source object into the given target object.
         *
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Apr 03 11:21:39 GMT 2025
    - 99.2K bytes
    - Click Count (0)
Back to Top