Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 361 - 370 of 422 for UNCHECKED (0.07 seconds)

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

        assertThat(set0).isEmpty();
    
        @SuppressWarnings("unchecked") // using a legacy comparable
        ImmutableSortedSet<LegacyComparable> set1 = ImmutableSortedSet.of(LegacyComparable.Z);
        assertThat(set1).containsExactly(LegacyComparable.Z);
    
        @SuppressWarnings("unchecked") // using a legacy comparable
        ImmutableSortedSet<LegacyComparable> set2 =
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 45.8K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/FluentIterable.java

       * This does perform a little more work than necessary, so another option is to insert an
       * unchecked cast at some later point:
       *
       * {@snippet :
       * @SuppressWarnings("unchecked") // safe because of ::isInstance check
       * ImmutableList<NewType> result =
       *     (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList());
       * }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 34.7K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java

                final Map<String, Object> defaultSettings = defaultSettings();
                initialSettings.forEach((key, value) -> {
                    if (value instanceof Collection) {
                        @SuppressWarnings("unchecked")
                        final Collection<Object> collection = (Collection<Object>) value;
                        collection.forEach(element -> arraySettings.add(new Tuple<>(key, element)));
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 20.1K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/TopKSelector.java

       * bufferSize ≥ k, then we can ignore any elements greater than this value.
       */
      private @Nullable T threshold;
    
      @SuppressWarnings("unchecked") // TODO(cpovirk): Consider storing Object[] instead of T[].
      private TopKSelector(Comparator<? super T> comparator, int k) {
        this.comparator = checkNotNull(comparator, "comparator");
        this.k = k;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Aug 31 13:15:26 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

    public class UnmodifiableCollectionTests {
    
      public static void assertMapEntryIsUnmodifiable(Entry<?, ?> entry) {
        try {
          // fine because the call is going to fail without modifying the entry
          @SuppressWarnings("unchecked")
          Entry<?, @Nullable Object> nullableValueEntry = (Entry<?, @Nullable Object>) entry;
          nullableValueEntry.setValue(null);
          fail("setValue on unmodifiable Map.Entry succeeded");
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 14.9K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

            assertEquals(25L, updated.get(FieldNames.QUERY_FREQ)); // 20 + 5
            assertEquals(20L, updated.get(FieldNames.DOC_FREQ)); // 10 + 10
    
            @SuppressWarnings("unchecked")
            List<String> tags = (List<String>) updated.get(FieldNames.TAGS);
            assertTrue(tags.contains("existing"));
        }
    
        @Test
        public void testConcatValues() {
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb/SmbTransportImpl.java

            }
            return getNegotiateResponse().isSigningRequired();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbTransport#unwrap(java.lang.Class)
         */
        @SuppressWarnings("unchecked")
        @Override
        public <T extends SmbTransport> T unwrap(final Class<T> type) {
            if (type.isAssignableFrom(this.getClass())) {
                return (T) this;
            }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 69.8K bytes
    - Click Count (0)
  8. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/AbstractCrawlerService.java

                    option.converter(new EsTimestampConverter(), timestampFields).excludeWhitespace();
                    option.exclude(OpenSearchAccessResult.ACCESS_RESULT_DATA);
                });
                @SuppressWarnings("unchecked")
                final Map<String, Object> data = (Map<String, Object>) source.get(OpenSearchAccessResult.ACCESS_RESULT_DATA);
                if (data != null) {
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Thu Nov 20 08:40:57 GMT 2025
    - 34.3K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

                return versionScheme.parseVersionRange(spec);
            } catch (InvalidVersionSpecificationException e) {
                throw new RuntimeException(e);
            }
        }
    
        @SuppressWarnings({"unchecked", "rawtypes"})
        private Map<String, String> createMergedProperties(MavenExecutionRequest request) {
            // this throwaway map is really ONLY to get config from (profiles + env + system + user)
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Jul 17 05:56:35 GMT 2025
    - 25.8K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/AbstractBiMap.java

          stream.defaultWriteObject();
          stream.writeObject(inverse());
        }
    
        @GwtIncompatible
        @J2ktIncompatible
            @SuppressWarnings("unchecked") // reading data stored by writeObject
        private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
          stream.defaultReadObject();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 15:50:50 GMT 2025
    - 14.3K bytes
    - Click Count (0)
Back to Top