- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 985 for SuppressWarnings (0.2 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/MapSerializationTester.java
*/ @GwtCompatible @Ignore("test runners must not instantiate and run this directly, only via suites we build") // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. @SuppressWarnings("JUnit4ClassUsedInJUnit3") public class MapSerializationTester<K, V> extends AbstractMapTester<K, V> { @CollectionFeature.Require(SERIALIZABLE) public void testReserializeMap() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 1.7K bytes - Viewed (0) -
guava-gwt/test/com/google/common/GwtTestSuite.java
if (info.getName().endsWith("_gwt")) { Class<?> clazz = info.load(); // TODO(cpovirk): why does asSubclass() throw? Is it something about ClassLoaders? @SuppressWarnings("unchecked") Class<? extends GWTTestCase> cast = (Class<? extends GWTTestCase>) clazz; suite.addTestSuite(cast); } } return suite; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 1.6K 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) -
android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapEqualsTester.java
*/ @GwtCompatible @Ignore("test runners must not instantiate and run this directly, only via suites we build") // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. @SuppressWarnings("JUnit4ClassUsedInJUnit3") public class SetMultimapEqualsTester<K, V> extends AbstractMultimapTester<K, V, SetMultimap<K, V>> { @CollectionSize.Require(SEVERAL) public void testOrderingDoesntAffectEqualsComparisons() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 1.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestEnumMapGenerator.java
mapEntry(AnEnum.E, "May")); } @Override public final Map<AnEnum, String> create(Object... entries) { @SuppressWarnings("unchecked") Entry<AnEnum, String>[] array = (Entry<AnEnum, String>[]) new Entry<?, ?>[entries.length]; int i = 0; for (Object o : entries) { @SuppressWarnings("unchecked") Entry<AnEnum, String> e = (Entry<AnEnum, String>) o; array[i++] = e; } return create(array);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 2.5K 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) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEqualsTester.java
*/ @GwtCompatible @Ignore("test runners must not instantiate and run this directly, only via suites we build") // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. @SuppressWarnings("JUnit4ClassUsedInJUnit3") public class MultisetEqualsTester<E> extends AbstractMultisetTester<E> { public void testEqualsSameContents() { new EqualsTester() .addEqualityGroup(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 2.4K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/ProjectScope.java
* <p> * Implementation must have {@code equals()} and {@code hashCode()} implemented, so implementations of this interface * can be used as keys. * * @since 4.0.0 */ @Experimental @Immutable @SuppressWarnings("checkstyle:InterfaceIsType") public interface ProjectScope extends ExtensibleEnum { /** * Main scope. */ ProjectScope MAIN = projectScope("main"); /** * Test scope.
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Mon Feb 05 09:42:51 UTC 2024 - 1.8K 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) -
android/guava/src/com/google/common/collect/RegularImmutableList.java
import org.jspecify.annotations.Nullable; /** * Implementation of {@link ImmutableList} backed by a simple array. * * @author Kevin Bourrillion */ @GwtCompatible @SuppressWarnings("serial") // uses writeReplace(), not default serialization final class RegularImmutableList<E> extends ImmutableList<E> { static final ImmutableList<Object> EMPTY = new RegularImmutableList<>(new Object[0], 0);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.7K bytes - Viewed (0)