- Sort Score
- Result 10 results
- Languages All
Results 261 - 270 of 985 for SuppressWarnings (0.12 sec)
-
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
// We assume that all defaults are generics-safe, even if they aren't, // we take the risk. @SuppressWarnings("unchecked") T defaultValue = (T) defaults.getInstance(type.getRawType()); if (defaultValue != null) { return defaultValue; } @SuppressWarnings("unchecked") // All arbitrary instances are generics-safe T arbitrary = (T) ArbitraryInstances.get(type.getRawType());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 24.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
Class<? super T> rawType = type.getRawType(); @SuppressWarnings("unchecked") // Assume all default values are generics safe. T defaultValue = (T) defaultValues.getInstance(rawType); if (defaultValue != null) { return defaultValue; } @SuppressWarnings("unchecked") // ArbitraryInstances always returns generics-safe dummies.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
import junit.framework.TestCase; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Unit test for {@code AbstractIterator}. * * @author Kevin Bourrillion */ @SuppressWarnings("serial") // No serialization is used in this test @GwtCompatible @NullMarked public class AbstractIteratorTest extends TestCase { public void testDefaultBehaviorOfNextAndHasNext() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7.8K bytes - Viewed (0) -
samples/slack/src/main/java/okhttp3/slack/OAuthSession.java
* limitations under the License. */ package okhttp3.slack; /** Authorization for an application to make Slack API calls on behalf of a user. */ @SuppressWarnings("checkstyle:membername") public final class OAuthSession { public final boolean ok; public final String access_token; public final String scope; public final String user_id; public final String team_name;
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Oct 23 15:24:22 UTC 2016 - 1.4K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/FakeTickerTest.java
/** * Unit test for {@link FakeTicker}. * * @author Jige Yu */ @GwtCompatible // We also want to test the TimeUnit overload (especially under GWT, where it's the only option). @SuppressWarnings("SetAutoIncrementStep_Nanos") @NullUnmarked public class FakeTickerTest extends TestCase { @GwtIncompatible // NullPointerTester public void testNullPointerExceptions() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/DocumentUtil.java
* @param key the key to look up in the document map * @param clazz the class type to convert the value to * @return the converted value or null if not found or conversion fails */ @SuppressWarnings("unchecked") public static <T> T getValue(final Map<String, Object> doc, final String key, final Class<T> clazz) { if (doc == null || key == null) { return null; }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 7.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/CollectorTester.java
/** * Verifies that the specified expected result is always produced by collecting the specified * inputs, regardless of how the elements are divided. */ @SafeVarargs @CanIgnoreReturnValue @SuppressWarnings("nullness") // TODO(cpovirk): Remove after we fix whatever the bug is. public final CollectorTester<T, A, R> expectCollects(R expectedResult, T... inputs) { List<T> list = Arrays.asList(inputs);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu May 15 21:47:56 UTC 2025 - 6.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/entity/QueryContext.java
* request-scoped attributes for highlighting and field logging. * @param queryString The query string to process. * @param isQuery Whether this is a search query (enables highlighting and logging). */ @SuppressWarnings("unchecked") public QueryContext(final String queryString, final boolean isQuery) { if (queryString != null) { if (queryString.startsWith(ALLINURL_FIELD_PREFIX)) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.4K bytes - Viewed (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;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 8.9K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/rpc.java
* This class contains NDR (Network Data Representation) encodable/decodable structures * used in DCE/RPC communications including UUID, policy handles, unicode strings, and SIDs. */ @SuppressWarnings("all") public class rpc { /** * Private constructor to prevent instantiation of utility class. */ private rpc() { // Utility class } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.3K bytes - Viewed (0)