Search Options

Results per page
Sort
Preferred Languages
Advance

Results 361 - 370 of 985 for SuppressWarnings (0.06 sec)

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

       * `unchecked` perspective, they're safe because we put only K/V elements into each array.)
       */
    
      @SuppressWarnings("unchecked")
      private K key(int i) {
        return (K) requireKeys()[i];
      }
    
      @SuppressWarnings("unchecked")
      private V value(int i) {
        return (V) requireValues()[i];
      }
    
      private int entry(int i) {
        return requireEntries()[i];
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 35.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/ObjectsTest.java

    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests for {@link Objects}.
     *
     * @author Laurence Gonsalves
     */
    @GwtCompatible
    @NullUnmarked
    public class ObjectsTest extends TestCase {
    
      @SuppressWarnings({
        "ObjectEqualsForPrimitives", // test of a trivial call
        "EqualsInteger", // test of a trivial call
        "EqualsLong", // b/273939864
        "EqualsDouble", // b/273939864
        "EqualsFloat", // b/273939864
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapToStringTester.java

     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultimapToStringTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      @CollectionSize.Require(ZERO)
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java

     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultimapValuesTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      public void testValues() {
        List<V> expected = new ArrayList<>();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutTester.java

     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class SetMultimapPutTester<K, V> extends AbstractMultimapTester<K, V, SetMultimap<K, V>> {
      // Tests for non-duplicate values are in MultimapPutTester
    
      @MapFeature.Require(SUPPORTS_PUT)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java

     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class CollectionClearTester<E> extends AbstractCollectionTester<E> {
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testClear() {
        collection.clear();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ForwardingConcurrentMap.java

      }
    
      @CanIgnoreReturnValue
      @Override
      public @Nullable V replace(K key, V value) {
        return delegate().replace(key, value);
      }
    
      @CanIgnoreReturnValue
      @Override
      @SuppressWarnings("nullness") // https://github.com/jspecify/jdk/issues/118
      public boolean replace(K key, V oldValue, V newValue) {
        return delegate().replace(key, oldValue, newValue);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Feb 18 16:58:16 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  8. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t08/ProjectInheritanceTest.java

    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * A test which demonstrates maven's dependency management
     *
     */
    @Deprecated
    @SuppressWarnings("checkstyle:UnusedLocalVariable")
    class ProjectInheritanceTest extends AbstractProjectInheritanceTestCase {
        // ----------------------------------------------------------------------
        //
        // p1 inherits from p0
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/eventbus/Dispatcher.java

      private static final class PerThreadQueuedDispatcher extends Dispatcher {
    
        // This dispatcher matches the original dispatch behavior of EventBus.
    
        /** Per-thread queue of events to dispatch. */
        @SuppressWarnings("ThreadLocalUsage") // Each Dispatcher needs its own state.
        private final ThreadLocal<Queue<Event>> queue =
            new ThreadLocal<Queue<Event>>() {
              @Override
              protected Queue<Event> initialValue() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

         * @param delay the delay between the termination of one execution and the commencement of the
         *     next
         * @param unit the time unit of the initialDelay and delay parameters
         */
        @SuppressWarnings("GoodTime") // should accept a java.time.Duration
        public static Scheduler newFixedDelaySchedule(long initialDelay, long delay, TimeUnit unit) {
          checkNotNull(unit);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.8K bytes
    - Viewed (0)
Back to top