- Sort Score
- Num 10 results
- Language All
Results 1191 - 1200 of 1,450 for SuppressWarnings (0.08 seconds)
-
guava-tests/test/com/google/common/cache/CacheLoadingTest.java
CacheLoader<Object, Object> loader = new CacheLoader<Object, Object>() { @Override public Object load(Object key) { return one; } @SuppressWarnings("CacheLoaderNull") // test of broken user implementation @Override public ListenableFuture<Object> reload(Object key, Object oldValue) { return null; } };
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 91K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java
import java.util.List; import java.util.NoSuchElementException; import junit.framework.TestCase; /** * Unit test for IteratorTester. * * @author Mick Killianey */ @GwtCompatible @SuppressWarnings("serial") // No serialization is used in this test public class IteratorTesterTest extends TestCase { public void testCanCatchDifferentLengthOfIteration() { IteratorTester<Integer> tester =Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 10.3K bytes - Click Count (0) -
guava/src/com/google/common/collect/Iterables.java
* unchecked cast at some later point: * * {@snippet : * @SuppressWarnings("unchecked") // safe because of ::isInstance check * ImmutableList<NewType> result = * (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList()); * } */ @SuppressWarnings("unchecked") @GwtIncompatible // Class.isInstanceCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 43.6K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/FarmHashFingerprint64.java
private static long hashLength65Plus(byte[] bytes, int offset, int length) { int seed = 81; // For strings over 64 bytes we loop. Internal state consists of 56 bytes: v, w, x, y, and z. long x = seed; @SuppressWarnings("ConstantOverflow") long y = seed * K1 + 113; long z = shiftMix(y * K2 + 113) * K2; long[] v = new long[2]; long[] w = new long[2]; x = x * K2 + load64(bytes, offset);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 7.6K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.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") @NullMarked public abstract class AbstractContainerTester<C, E extends @Nullable Object> extends AbstractTester<OneSizeTestContainerGenerator<C, E>> { protected SampleElements<E> samples;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 8.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java
public Iterator<E> descendingIterator() { assertTrue(Thread.holdsLock(mutex)); return delegate.descendingIterator(); } private static final long serialVersionUID = 0; } @SuppressWarnings("CheckReturnValue") public void testHoldsLockOnAllOperations() { create().element(); create().offer("foo"); create().peek(); create().poll(); create().remove();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jul 16 17:42:14 GMT 2025 - 7.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/MoreFilesTest.java
* contents. * * <p>We can only test this with a file system that supports SecureDirectoryStream, because it's * not possible to protect against this if the file system doesn't. */ @SuppressWarnings("ThreadPriorityCheck") // TODO: b/175898629 - Consider onSpinWait. public void testDirectoryDeletion_directorySymlinkRace() throws Exception { int iterations = isAndroid() ? 100 : 5000;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 27.5K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionRangeResolverRequest.java
private final ArtifactCoordinates artifactCoordinates; private final List<RemoteRepository> repositories; private final Nature nature; @SuppressWarnings("checkstyle:ParameterNumber") DefaultVersionResolverRequest( @Nonnull Session session, @Nullable RequestTrace trace,Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Dec 16 13:41:14 GMT 2025 - 10.4K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/AbstractCrawlerClient.java
* @param <T> The target type. * @param value The object to convert. * @param clazz The class type to convert to. * @return The converted object. */ @SuppressWarnings("unchecked") protected <T> T convertObj(final Object value, final Class<T> clazz) { if (clazz.isAssignableFrom(String.class)) { return (T) value.toString(); }Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Sat Sep 06 04:15:37 GMT 2025 - 9.7K bytes - Click Count (10) -
android/guava/src/com/google/common/collect/Streams.java
public static DoubleStream stream(OptionalDouble optional) { return optional.isPresent() ? DoubleStream.of(optional.getAsDouble()) : DoubleStream.empty(); } @SuppressWarnings("CatchingUnchecked") // sneaky checked exception private static void closeAll(BaseStream<?, ?>[] toClose) { // If one of the streams throws an exception, continue closing the others, then throw the
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 36.8K bytes - Click Count (0)