- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 392 for UNCHECKED (0.24 sec)
-
android/guava/src/com/google/common/collect/ObjectCountHashMap.java
} int nextIndexAfterRemove(int oldNextIndex, @SuppressWarnings("unused") int removedIndex) { return oldNextIndex - 1; } int size() { return size; } @SuppressWarnings("unchecked") @ParametricNullness K getKey(int index) { checkElementIndex(index, size); return (K) keys[index]; } int getValue(int index) { checkElementIndex(index, size);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 14.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TreeMultiset.java
* * @param comparator the comparator that will be used to sort this multiset. A null value * indicates that the elements' <i>natural ordering</i> should be used. */ @SuppressWarnings("unchecked") public static <E extends @Nullable Object> TreeMultiset<E> create( @Nullable Comparator<? super E> comparator) { return (comparator == null) ? new TreeMultiset<E>((Comparator) Ordering.natural())
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Dec 09 15:58:48 UTC 2025 - 33.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/Pair.java
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 3.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/JdkBackedImmutableMultiset.java
private final ImmutableList<Entry<E>> entries; private final long size; static <E> ImmutableMultiset<E> create(Collection<? extends Entry<? extends E>> entries) { @SuppressWarnings("unchecked") Entry<E>[] entriesArray = entries.toArray((Entry<E>[]) new Entry<?>[0]); Map<E, Integer> delegateMap = Maps.newHashMapWithExpectedSize(entriesArray.length); long size = 0;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 23 17:50:58 UTC 2025 - 3.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ReverseNaturalOrdering.java
@GwtCompatible final class ReverseNaturalOrdering extends Ordering<Comparable<?>> implements Serializable { static final ReverseNaturalOrdering INSTANCE = new ReverseNaturalOrdering(); @Override @SuppressWarnings("unchecked") // TODO(kevinb): the right way to explain this?? public int compare(Comparable<?> left, Comparable<?> right) { checkNotNull(left); // right null is caught later if (left == right) { return 0; }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Jun 04 13:03:16 UTC 2025 - 3K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java
assertTrue(exception instanceof Throwable); // Should not require try-catch (unchecked exception) throwUnchecked(); // This compiles without try-catch } private void throwUnchecked() { if (Math.random() > 1) { // Never true, but compiler doesn't know throw new CrawlerSystemException("Unchecked"); } } /** * Test suppressed exceptions */
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 20K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractSortedMultiset.java
abstract class AbstractSortedMultiset<E extends @Nullable Object> extends AbstractMultiset<E> implements SortedMultiset<E> { private final Comparator<? super E> comparator; // needed for serialization @SuppressWarnings("unchecked") AbstractSortedMultiset() { this((Comparator) Ordering.natural()); } AbstractSortedMultiset(Comparator<? super E> comparator) { this.comparator = checkNotNull(comparator); } @Override
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 4.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java
}, finishToValueAndCloserExecutor); assertWithMessage("valueAndCloser was set") .that(awaitUninterruptibly(valueAndCloserSet, 10, SECONDS)) .isTrue(); @SuppressWarnings("unchecked") ValueAndCloser<V> valueAndCloserWithType = (ValueAndCloser<V>) valueAndCloser; return valueAndCloserWithType; }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 5.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableList.java
arraycopy(array, 0, dst, dstOff, size); return dstOff + size; } // The fake cast to E is safe because the creation methods only allow E's @Override @SuppressWarnings("unchecked") public E get(int index) { checkElementIndex(index, size); // requireNonNull is safe because we guarantee that the first `size` elements are non-null. return (E) requireNonNull(array[index]); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java
public Set<Multiset.Entry<E>> create(Object... entries) { List<Object> contents = new ArrayList<>(); Set<E> elements = new HashSet<>(); for (Object o : entries) { @SuppressWarnings("unchecked") Multiset.Entry<E> entry = (Entry<E>) o; checkArgument( elements.add(entry.getElement()), "Duplicate keys not allowed in EntrySetGenerator"); for (int i = 0; i < entry.getCount(); i++) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 10.5K bytes - Viewed (0)