Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 985 for SuppressWarnings (0.1 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.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")
    @NullMarked
    public class SetMultimapAsMapTester<K extends @Nullable Object, V extends @Nullable Object>
        extends AbstractMultimapTester<K, V, SetMultimap<K, V>> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java

          return new SampleElements<>(
              mapEntry("foo", 5),
              mapEntry("bar", 3),
              mapEntry("baz", 17),
              mapEntry("quux", 1),
              mapEntry("toaster", -2));
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public Entry<String, Integer>[] createArray(int length) {
          return (Entry<String, Integer>[]) new Entry<?, ?>[length];
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/lang/MethodUtilTest.java

             * @return 戻り値
             */
            @SuppressWarnings("rawtypes")
            List rawList(List param);
    
            /**
             * @param param
             * @return 戻り値
             */
            List<String> genericList(List<Integer> param);
    
            /**
             * @param param
             * @return 戻り値
             */
            @SuppressWarnings("rawtypes")
            Map rawMap(Map param);
    
            /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

        for (int i = 0; i < distinctKeys; i++) {
          @SuppressWarnings("unchecked")
          K key = (K) stream.readObject();
          map.put(key, createCollection(key));
        }
        int entries = stream.readInt();
        for (int i = 0; i < entries; i++) {
          @SuppressWarnings("unchecked")
          K key = (K) stream.readObject();
          @SuppressWarnings("unchecked")
          V value = (V) stream.readObject();
          /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableMultimap.java

       */
      public static <K, V> ImmutableMultimap<K, V> copyOf(Multimap<? extends K, ? extends V> multimap) {
        if (multimap instanceof ImmutableMultimap) {
          @SuppressWarnings("unchecked") // safe since multimap is not writable
          ImmutableMultimap<K, V> kvMultimap = (ImmutableMultimap<K, V>) multimap;
          if (!kvMultimap.isPartialView()) {
            return kvMultimap;
          }
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 28.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/AbstractTableTest.java

          assertEquals(ImmutableMap.of(5, 'x'), row);
        }
      }
    
      @SuppressWarnings("unchecked") // C can only be @Nullable Character or Character
      protected @NonNull C cellValue(Character character) {
        return (C) character;
      }
    
      // Only safe wrt. ClassCastException. Not null-safe (can be used to test expected Table NPEs)
      @SuppressWarnings("unchecked")
      protected C nullableCellValue(@Nullable Character character) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/ArtifactMetadata.java

                String classifier,
                String artifactUri) {
            this(groupId, name, version, type, artifactScope, classifier, artifactUri, null, true, null);
        }
    
        @SuppressWarnings("checkstyle:parameternumber")
        public ArtifactMetadata(
                String groupId,
                String name,
                String version,
                String type,
                ArtifactScopeEnum artifactScope,
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sun Mar 30 23:08:36 UTC 2025
    - 8K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

        checkNotNull(mergeFunction);
        return Collectors.collectingAndThen(
            Collectors.toMap(keyFunction, valueFunction, mergeFunction, LinkedHashMap::new),
            ImmutableMap::copyOf);
      }
    
      @SuppressWarnings("unchecked") // An empty map works for all types.
      public static <K, V> ImmutableMap<K, V> of() {
        return (ImmutableMap<K, V>) RegularImmutableMap.EMPTY;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            // Use reflection to access concurrent collections
            Field connectionsField = SmbTransportPoolImpl.class.getDeclaredField("connections");
            connectionsField.setAccessible(true);
            @SuppressWarnings("unchecked")
            java.util.concurrent.ConcurrentLinkedQueue<SmbTransportImpl> connections =
                    (java.util.concurrent.ConcurrentLinkedQueue<SmbTransportImpl>) connectionsField.get(pool);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/CompactHashSet.java

        setHashTableMask(buckets - 1);
    
        this.entries = new int[expectedSize];
        this.elements = new Object[expectedSize];
    
        return expectedSize;
      }
    
      @SuppressWarnings("unchecked")
      @VisibleForTesting
      @Nullable Set<E> delegateOrNull() {
        if (table instanceof Set) {
          return (Set<E>) table;
        }
        return null;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 23.9K bytes
    - Viewed (0)
Back to top