- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 319 for SuppressWarnings (0.3 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java
logger.fine("Expanded: " + formatFeatureSet(features)); @SuppressWarnings("rawtypes") // class literals List<Class<? extends AbstractTester>> testers = getTesters(); TestSuite suite = new TestSuite(name); for (@SuppressWarnings("rawtypes") // class literals Class<? extends AbstractTester> testerClass : testers) { @SuppressWarnings("unchecked") // getting rid of the raw type, for better or for worse
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 10.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java
public Set<Object> create(Object... elements) { return ImmutableSet.copyOf(elements); } } public static class DegeneratedImmutableSetGenerator extends TestStringSetGenerator { @SuppressWarnings("DistinctVarargsChecker") // deliberately testing deduplication @Override protected Set<String> create(String[] elements) { return ImmutableSet.of(elements[0], elements[0]); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 15.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/QueuesTest.java
@SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored Future<?> possiblyIgnoredError = threadPool.submit(new Producer(q, 20)); @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored Future<?> possiblyIgnoredError1 = threadPool.submit(new Producer(q, 20));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 12.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/ThrowablesTest.java
/** * Unit test for {@link Throwables}. * * @author Kevin Bourrillion */ @GwtCompatible @SuppressWarnings("deprecation") // tests of numerous deprecated methods @NullUnmarked public class ThrowablesTest extends TestCase { // We're testing that the method is in fact equivalent to throwing the exception directly. @SuppressWarnings("ThrowIfUncheckedKnownUnchecked") public void testThrowIfUnchecked_unchecked() { assertThrows(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.9K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java
return of(list.get(0)); default: @SuppressWarnings("unchecked") List<E> castedList = (List<E>) list; return new RegularImmutableList<E>(castedList); } } /** * Views the array as an immutable list. The array must have only {@code E} elements. * * <p>The array must be internally created. */ @SuppressWarnings("unchecked") // caller is reponsible for getting this right
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 11.1K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
} @SuppressWarnings("unused") // for NullPointerTester private static class SubclassOverridesTheWrongMethod extends BaseClassThatFailsToThrow { @Keep public void oneArg(@Nullable CharSequence s) {} } public void testSubclassOverridesTheWrongMethod() { shouldFail(new SubclassOverridesTheWrongMethod()); } @SuppressWarnings("unused") // for NullPointerTester
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 47.7K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
String a, int b, // oneConstantOnly doesn't matter since it's not nullable and can be only 1 value. @SuppressWarnings("unused") OneConstantEnum oneConstantOnly, // noConstant doesn't matter since it can only be null @SuppressWarnings("unused") @Nullable NoConstantEnum noConstant) { return new GoodEquals(a, b); } // instance method ignored
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 36.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ThrowablesTest.java
/** * Unit test for {@link Throwables}. * * @author Kevin Bourrillion */ @GwtCompatible @SuppressWarnings("deprecation") // tests of numerous deprecated methods @NullUnmarked public class ThrowablesTest extends TestCase { // We're testing that the method is in fact equivalent to throwing the exception directly. @SuppressWarnings("ThrowIfUncheckedKnownUnchecked") public void testThrowIfUnchecked_unchecked() { assertThrows(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
@Generates int generateInt() { return freshness.get(); } @SuppressWarnings("removal") // b/321209431 -- maybe just use valueOf here? @Generates Integer generateInteger() { return new Integer(generateInt()); } @Generates long generateLong() { return generateInt(); } @SuppressWarnings("removal") // b/321209431 -- maybe just use valueOf here? @Generates
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 28.1K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java
return CollectCollectors.toImmutableSortedSet(comparator); } @SuppressWarnings("unchecked") public static <E> ImmutableSortedSet<E> of() { return (ImmutableSortedSet<E>) NATURAL_EMPTY_SET; } public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of(E e1) { return ofInternal(Ordering.natural(), e1); } @SuppressWarnings("unchecked")
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 15.5K bytes - Viewed (0)