Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 555 for unchecked (0.08 sec)

  1. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

            assertEquals(1, response2.getNum());
            assertEquals(1, response2.getTotal());
        }
    
        @Test
        @SuppressWarnings("unchecked")
        public void test_indexFromDocument() throws Exception {
            SuggestSettings settings = suggester.settings();
            String field = settings.array().get(SuggestSettings.DefaultKeys.SUPPORTED_FIELDS)[0];
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 37K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/NullPointerTester.java

        // We assume that all defaults are generics-safe, even if they aren't,
        // we take the risk.
        @SuppressWarnings("unchecked")
        T defaultValue = (T) defaults.getInstance(type.getRawType());
        if (defaultValue != null) {
          return defaultValue;
        }
        @SuppressWarnings("unchecked") // All arbitrary instances are generics-safe
        T arbitrary = (T) ArbitraryInstances.get(type.getRawType());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Futures.java

       *       exceptions).
       * </ul>
       *
       * <p>The overall principle is to continue to treat every checked exception as a checked
       * exception, every unchecked exception as an unchecked exception, and every error as an error. In
       * addition, the cause of any {@code ExecutionException} is wrapped in order to ensure that the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

            lastKnownIndex = indexOf(key);
          }
        }
    
        @SuppressWarnings("unchecked") // values only contains Vs
        @Override
        public int getCount() {
          updateLastKnownIndex();
          return (lastKnownIndex == -1) ? 0 : values[lastKnownIndex];
        }
    
        @SuppressWarnings("unchecked") // values only contains Vs
        @CanIgnoreReturnValue
        public int setCount(int count) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

     *
     * @author Louis Wasserman
     */
    @GwtIncompatible
    public final class SafeTreeSet<E> implements Serializable, NavigableSet<E> {
      @SuppressWarnings("unchecked")
      private static final Comparator<Object> NATURAL_ORDER =
          new Comparator<Object>() {
            @Override
            public int compare(Object o1, Object o2) {
              return ((Comparable<Object>) o1).compareTo(o2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MoreCollectors.java

       * @return {@code Optional.of(onlyElement)} if the stream has exactly one element (must not be
       *     {@code null}) and returns {@code Optional.empty()} if it has none.
       */
      @SuppressWarnings("unchecked")
      public static <T> Collector<T, ?, Optional<T>> toOptional() {
        return (Collector) TO_OPTIONAL;
      }
    
      private static final Object NULL_PLACEHOLDER = new Object();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

        return backingMap;
      }
    
      @SuppressWarnings("unchecked") // value could not get in if not a T
      @CheckForNull
      private <T extends B> T trustedPut(TypeToken<@NonNull T> type, @ParametricNullness T value) {
        return (T) backingMap.put(type, value);
      }
    
      @SuppressWarnings("unchecked") // value could not get in if not a T
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

        /* nothing */
      }
    
      /**
       * This Iterator claims to have more elements than the underlying iterable, but when you try to
       * fetch the extra elements, it throws an unchecked exception.
       */
      static class ThrowsAtEndIterator<E> implements Iterator<E> {
        Iterator<E> iterator;
    
        public ThrowsAtEndIterator(Iterable<E> iterable) {
          this.iterator = iterable.iterator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

        @CheckForNull
        public Collection<V> get(@CheckForNull Object key) {
          Collection<V> result = unfiltered.asMap().get(key);
          if (result == null) {
            return null;
          }
          @SuppressWarnings("unchecked") // key is equal to a K, if not a K itself
          K k = (K) key;
          result = filterCollection(result, new ValuePredicate(k));
          return result.isEmpty() ? null : result;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

        return backingMap;
      }
    
      @SuppressWarnings("unchecked") // value could not get in if not a T
      @CheckForNull
      private <T extends B> T trustedPut(TypeToken<@NonNull T> type, @ParametricNullness T value) {
        return (T) backingMap.put(type, value);
      }
    
      @SuppressWarnings("unchecked") // value could not get in if not a T
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top