- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 360 for UNCHECKED (1.55 sec)
-
src/test/java/org/codelibs/core/collection/MultiIteratorTest.java
/** * */ @Test public void test() { final List<String> list1 = asList("Foo", "Bar"); final List<String> list2 = asList("Baz"); @SuppressWarnings("unchecked") final Iterator<String> it = new MultiIterator<String>(list1.iterator(), list2.iterator()); assertThat(it.hasNext(), is(true)); assertThat(it.next(), is("Foo"));
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java
// Other tests will verify what real, warning-free usage looks like // but here we have to do some serious fudging @Override @SuppressWarnings({"unchecked", "rawtypes"}) public Map<Class, Impl> create(Object... elements) { ImmutableClassToInstanceMap.Builder<Impl> builder = ImmutableClassToInstanceMap.builder();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 7.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/SearchLogHelperTest.java
assertEquals("value1", result.get("test_key")); assertEquals("value2", result.get("another_test_key")); @SuppressWarnings("unchecked") Map<String, Object> nestedResult = (Map<String, Object>) result.get("nested_map"); assertEquals("nestedValue", nestedResult.get("nested_key")); } public void test_toLowerHyphen_emptyMap() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/DummyProxy.java
interfaceClasses.iterator().next().getClassLoader(), interfaceClasses.toArray(new Class<?>[interfaceClasses.size()]), new DummyHandler(interfaceType)); @SuppressWarnings("unchecked") // interfaceType is T T result = (T) dummy; return result; } /** Returns the dummy return value for {@code returnType}. */ abstract <R> @Nullable R dummyReturnValue(TypeToken<R> returnType);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 22:10:29 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/Tuple3.java
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 4.6K 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) -
src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java
} } @Override public final String getPropertyName() { return propertyName; } @Override @SuppressWarnings("unchecked") public final <T> Class<T> getPropertyType() { return (Class<T>) propertyType; } @Override public final Method getReadMethod() { return readMethod; }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 24 01:52:43 UTC 2025 - 15.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompactHashMap.java
* * (The above explains when these methods are safe from a `nullness` perspective. From an * `unchecked` perspective, they're safe because we put only K/V elements into each array.) */ @SuppressWarnings("unchecked") private K key(int i) { return (K) requireKeys()[i]; } @SuppressWarnings("unchecked") private V value(int i) { return (V) requireValues()[i]; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 39.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactHashMap.java
* * (The above explains when these methods are safe from a `nullness` perspective. From an * `unchecked` perspective, they're safe because we put only K/V elements into each array.) */ @SuppressWarnings("unchecked") private K key(int i) { return (K) requireKeys()[i]; } @SuppressWarnings("unchecked") private V value(int i) { return (V) requireValues()[i]; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 35.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java
* This implementation passes the navigable map test suites. * * @author Louis Wasserman */ @GwtIncompatible public final class SafeTreeMap<K, V> implements Serializable, NavigableMap<K, V> { @SuppressWarnings("unchecked") private static final Comparator<Object> NATURAL_ORDER = new Comparator<Object>() { @Override public int compare(Object o1, Object o2) { return ((Comparable<Object>) o1).compareTo(o2);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 7.5K bytes - Viewed (0)