- Sort Score
- Result 10 results
- Languages All
Results 611 - 620 of 1,007 for SuppressWarnings (0.07 sec)
- 
				
				guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.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 MultimapKeysTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> { @CollectionSize.Require(SEVERAL) public void testKeys() {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 4.3K bytes - Viewed (0)
- 
				
				guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.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 MapComputeIfPresentTester<K, V> extends AbstractMapTester<K, V> { @MapFeature.Require(SUPPORTS_PUT) public void testComputeIfPresent_supportedAbsent() { assertNull(Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 6.1K bytes - Viewed (0)
- 
				
				src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java// Arrange: Since SmbUnsupportedOperationException is a checked exception (extends IOException), // we need to use a method that can throw checked exceptions or wrap it in a RuntimeException @SuppressWarnings("unchecked") Supplier<String> supplier = mock(Supplier.class); when(supplier.get()).thenThrow(new RuntimeException(new SmbUnsupportedOperationException("boom"))); Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0)
- 
				
				android/guava/src/com/google/common/collect/Multimaps.javathrow new UnsupportedOperationException(); } @SuppressWarnings("unchecked") @Override public boolean remove(@Nullable Object key, @Nullable Object value) { return get((K) key).remove(value); } @SuppressWarnings("unchecked") @Override public Collection<V2> removeAll(@Nullable Object key) { Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 86.6K bytes - Viewed (0)
- 
				
				guava/src/com/google/common/collect/Multimaps.javathrow new UnsupportedOperationException(); } @SuppressWarnings("unchecked") @Override public boolean remove(@Nullable Object key, @Nullable Object value) { return get((K) key).remove(value); } @SuppressWarnings("unchecked") @Override public Collection<V2> removeAll(@Nullable Object key) { Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 86.9K bytes - Viewed (0)
- 
				
				guava/src/com/google/common/math/BigIntegerMath.java* * @throws IllegalArgumentException if {@code x <= 0} * @throws ArithmeticException if {@code mode} is {@link RoundingMode#UNNECESSARY} and {@code x} * is not a power of two */ @SuppressWarnings("fallthrough") // TODO(kevinb): remove after this warning is disabled globally public static int log2(BigInteger x, RoundingMode mode) { checkPositive("x", checkNotNull(x)); int logFloor = x.bitLength() - 1;Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 18.8K bytes - Viewed (0)
- 
				
				android/guava/src/com/google/common/collect/ImmutableBiMap.java} /** * Returns the empty bimap. * * <p><b>Performance note:</b> the instance returned is a singleton. */ // Casting to any type is safe because the set will never hold any elements. @SuppressWarnings("unchecked") public static <K, V> ImmutableBiMap<K, V> of() { return (ImmutableBiMap<K, V>) RegularImmutableBiMap.EMPTY; } /** Returns an immutable bimap containing a single entry. */Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 22.2K bytes - Viewed (0)
- 
				
				guava-testlib/src/com/google/common/testing/ArbitraryInstances.javasetImplementation(ThreadFactory.class, Dummies.DummyThreadFactory.class); setImplementation(Executor.class, Dummies.DummyExecutor.class); } @SuppressWarnings("unchecked") // it's a subtype map private static <T> @Nullable Class<? extends T> getImplementation(Class<T> type) { return (Class<? extends T>) implementations.get(type); } Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 21.4K bytes - Viewed (0)
- 
				
				android/guava-testlib/src/com/google/common/collect/testing/SortedMapTestSuiteBuilder.javaTestSortedMapGenerator<K, V> generator) { SortedMapTestSuiteBuilder<K, V> result = new SortedMapTestSuiteBuilder<>(); result.usingGenerator(generator); return result; } @SuppressWarnings("rawtypes") // class literals @Override protected List<Class<? extends AbstractTester>> getTesters() { List<Class<? extends AbstractTester>> testers = copyToList(super.getTesters()); Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 5K bytes - Viewed (0)
- 
				
				src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.javaassertThat(hoge.getKeyClassOfMap(), is(sameClass(String.class))); assertThat(hoge.getValueClassOfMap(), is(sameClass(Integer.class))); } /** * */ @SuppressWarnings("unused") public static class MyBean { /** */ public static final String HOGE = "hoge"; private Class<?> aaa; private List<String> list; Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 5K bytes - Viewed (0)