Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 1,112 for SuppressWarnings (0.13 seconds)

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

      // ----------------------------------------------------------------
    
      public void testAwait_countDownLatch() {
        CountDownLatch latch = new CountDownLatch(1);
        Object unused =
            new Object() {
              @SuppressWarnings({"removal", "Finalize"}) // b/260137033
              @Override
              protected void finalize() {
                latch.countDown();
              }
            };
        unused = null; // Hint to the JIT that unused is unreachable
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Dec 08 17:02:07 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java

              OneSizeTestSuiteBuilder<T, E>, OneSizeGenerator<T, E>> {
        @SuppressWarnings("rawtypes") // class literals
        private final List<Class<? extends AbstractTester>> testers;
    
        @SuppressWarnings("rawtypes") // class literals
        OneSizeTestSuiteBuilder(List<Class<? extends AbstractTester>> testers) {
          this.testers = testers;
        }
    
        @SuppressWarnings("rawtypes") // class literals
        @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/primitives/Primitives.java

      @SuppressWarnings("ConstantCaseForConstants")
      private static final Map<Class<?>, Class<?>> PRIMITIVE_TO_WRAPPER_TYPE;
    
      /** A map from wrapper types to their corresponding primitive types. */
      // It's a constant, and we can't use ImmutableMap here without creating a circular dependency.
      @SuppressWarnings("ConstantCaseForConstants")
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 28 01:26:26 GMT 2024
    - 4.8K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/NaturalOrdering.java

      @Override
      @SuppressWarnings("unchecked") // TODO(kevinb): the right way to explain this??
      public int compare(Comparable<?> left, Comparable<?> right) {
        checkNotNull(left); // for GWT
        checkNotNull(right);
        return ((Comparable<Object>) left).compareTo(right);
      }
    
      @Override
      @SuppressWarnings("unchecked") // TODO(kevinb): the right way to explain this??
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 3K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionForEachTester.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")
    @IgnoreJRERequirement // We opt into library desugaring for our tests.
    public class CollectionForEachTester<E> extends AbstractCollectionTester<E> {
      @CollectionFeature.Require(absent = KNOWN_ORDER)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Oct 31 14:51:04 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/ListLastIndexOfTester.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 ListLastIndexOfTester<E> extends AbstractListIndexOfTester<E> {
      @Override
      protected int find(Object o) {
        return getList().lastIndexOf(o);
      }
    
      @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.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 ListToArrayTester<E> extends AbstractListTester<E> {
      // CollectionToArrayTester tests everything except ordering.
    
      public void testToArray_noArg() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/QueueOfferTester.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 QueueOfferTester<E> extends AbstractQueueTester<E> {
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testOffer_supportedNotPresent() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/Serialization.java

          Map<K, V> map, ObjectInputStream stream, int size)
          throws IOException, ClassNotFoundException {
        for (int i = 0; i < size; i++) {
          @SuppressWarnings("unchecked") // reading data stored by writeMap
          K key = (K) stream.readObject();
          @SuppressWarnings("unchecked") // reading data stored by writeMap
          V value = (V) stream.readObject();
          map.put(key, value);
        }
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

            }
        }
    
        @Singleton
        @Named(Lifecycle.CLEAN)
        @SuppressWarnings("unused")
        static class CleanLifecycleProvider extends BaseLifecycleProvider {
            CleanLifecycleProvider() {
                super(Lifecycle.CLEAN);
            }
        }
    
        @Singleton
        @Named(Lifecycle.DEFAULT)
        @SuppressWarnings("unused")
        static class DefaultLifecycleProvider extends BaseLifecycleProvider {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 20.1K bytes
    - Click Count (0)
Back to Top