- Sort Score
- Num 10 results
- Language All
Results 281 - 290 of 1,112 for SuppressWarnings (0.13 seconds)
-
android/guava-tests/test/com/google/common/graph/ElementOrderTest.java
NonComparableSuperClass(Integer value) { this.value = checkNotNull(value); } @Override public String toString() { return "value=" + value; } } @SuppressWarnings("ComparableType") private static class ComparableSubClass extends NonComparableSuperClass implements Comparable<NonComparableSuperClass> { ComparableSubClass(Integer value) { super(value);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 8.1K bytes - Click Count (0) -
android/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
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 4.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java
RangeSet<Integer> expectedComplement = ImmutableRangeSet.<Integer>builder().add(Range.open(0, 2)).add(Range.atLeast(5)).build(); assertEquals(expectedComplement, rangeSet.complement()); } @SuppressWarnings("DoNotCall") public void testAddUnsupported() { RangeSet<Integer> rangeSet = ImmutableRangeSet.<Integer>builder() .add(Range.closed(5, 8)) .add(Range.closedOpen(1, 3))
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Jan 25 16:19:30 GMT 2025 - 21.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableList.java
* "https://github.com/google/guava/wiki/ImmutableCollectionsExplained">immutable collections</a>. * * @see ImmutableMap * @see ImmutableSet * @author Kevin Bourrillion * @since 2.0 */ @GwtCompatible @SuppressWarnings("serial") // we're overriding default serialization public abstract class ImmutableList<E> extends ImmutableCollection<E> implements List<E>, RandomAccess { /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 30.6K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java
* This implementation passes the navigable map test suites. * * @author Louis Wasserman */ @GwtIncompatible public final class SafeTreeMap<K, V> implements Serializable, NavigableMap<K, V> { @SuppressWarnings("unchecked") private static final Comparator<Object> NATURAL_ORDER = new Comparator<Object>() { @Override public int compare(Object o1, Object o2) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 7.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/TopKSelector.java
* The largest of the lowest k elements we've seen so far relative to this comparator. If * 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) -
android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java
} private interface Sample { String sleepThenReturnInput(String input); void sleepThenThrowException() throws SampleException; } @SuppressWarnings("serial") private static class SampleException extends Exception {} @SuppressWarnings("serial") private static class SampleRuntimeException extends RuntimeException {} private static class SampleImpl implements Sample { final long delayMillis;Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Jul 11 18:52:30 GMT 2025 - 9.7K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java
} public enum NoRecurse implements Feature<Void> { NO_ENTRY_SET; @Override public Set<Feature<? super Void>> getImpliedFeatures() { return emptySet(); } } @SuppressWarnings("rawtypes") // class literals @Override protected List<Class<? extends AbstractTester>> getTesters() { List<Class<? extends AbstractTester>> testers = copyToList(super.getTesters());
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 10.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/TreeMultimap.java
private transient Comparator<? super V> valueComparator; /** * Creates an empty {@code TreeMultimap} ordered by the natural ordering of its keys and values. */ @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989 public static <K extends Comparable, V extends Comparable> TreeMultimap<K, V> create() { return new TreeMultimap<>(Ordering.natural(), Ordering.natural()); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 8.5K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/testing/anotherpackage/SomeClassThatDoesNotUseNullable.java
* limitations under the License. */ package com.google.common.testing.anotherpackage; /** Does not check null, but should not matter since it's in a different package. */ @SuppressWarnings("unused") // For use by NullPointerTester public class SomeClassThatDoesNotUseNullable { void packagePrivateButDoesNotCheckNull(String s) {} protected void protectedButDoesNotCheckNull(String s) {}
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Apr 21 02:27:51 GMT 2017 - 1.1K bytes - Click Count (0)