- Sort Score
- Result 10 results
- Languages All
Results 261 - 270 of 555 for unchecked (0.08 sec)
-
android/guava-tests/test/com/google/common/reflect/SubtypeTester.java
} } private Type getOnlyParameterType() { assertThat(method.getGenericParameterTypes()).hasLength(1); return method.getGenericParameterTypes()[0]; } @SuppressWarnings({"rawtypes", "unchecked"}) private static Type getSupertype(Type type, Class<?> superclass) { Class rawType = superclass; return TypeToken.of(type).getSupertype(rawType).getType(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 6.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java
public void testOrderedByComparator() { Comparator<? super K> comparator = navigableMap.comparator(); if (comparator == null) { comparator = new Comparator<K>() { @SuppressWarnings("unchecked") @Override public int compare(K o1, K o2) { return ((Comparable) o1).compareTo(o2); } }; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.1K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java
return mapMaker; } static <E extends Enum<E>> Class<E> getDeclaringClassOrObjectForJ2cl(E e) { Class<E> classOrNull = getDeclaringClassOrNullForJ2cl(e); @SuppressWarnings("unchecked") Class<E> result = classOrNull == null ? (Class<E>) (Class<?>) Object.class : classOrNull; return result; } /* * If I understand correctly: *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 06 17:52:51 UTC 2024 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/ReflectionFreeAssertThrows.java
try { result = supplier.get(); } catch (Throwable t) { if (predicate.apply(t)) { // We are careful to set up INSTANCE_OF to match each Predicate to its target Class. @SuppressWarnings("unchecked") T caught = (T) t; return caught; } throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 6.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/SearchLogHelper.java
searchLog.setLanguages(StringUtils.join((String[]) languages, ",")); } else { searchLog.setLanguages(StringUtil.EMPTY); } @SuppressWarnings("unchecked") final Map<String, List<String>> fieldLogMap = (Map<String, List<String>>) req.getAttribute(Constants.FIELD_LOGS); if (fieldLogMap != null) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Mon Jul 22 02:07:37 UTC 2024 - 21.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/ComponentUtil.java
return getComponent(RANK_FUSION_PROCESSOR); } public static ProtocolHelper getProtocolHelper() { return getComponent(PROTOCOL_HELPER); } @SuppressWarnings("unchecked") public static <T> T getComponent(final Class<T> clazz) { try { return SingletonLaContainer.getComponent(clazz); } catch (final NullPointerException e) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Mon Jun 17 13:35:51 UTC 2024 - 20.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterables.java
* unchecked cast at some later point: * * <pre> * {@code @SuppressWarnings("unchecked") // safe because of ::isInstance check * ImmutableList<NewType> result = * (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList());} * </pre> */ @SuppressWarnings("unchecked") @GwtIncompatible // Class.isInstance
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 24 19:38:27 UTC 2024 - 42.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Interners.java
if (canonical != null) { // only matters if weak/soft keys are used // The compiler would know this is safe if not for our use of raw types (see above). @SuppressWarnings("unchecked") E result = (E) canonical; return result; } } // didn't see it, trying to put it instead... Dummy sneaky = map.putIfAbsent(sample, Dummy.VALUE);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 13 14:30:51 UTC 2023 - 5.9K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
return true; } catch (Throwable t) { // sneaky checked exception return false; } } private static <X extends Exception> X newWithCause(Class<X> exceptionClass, Throwable cause) { // getConstructors() guarantees this as long as we don't modify the array. @SuppressWarnings({"unchecked", "rawtypes"})
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 17:40:56 UTC 2024 - 11.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Maps.java
public Object apply(Entry<?, ?> entry) { return entry.getValue(); } }; } @SuppressWarnings("unchecked") static <K extends @Nullable Object> Function<Entry<K, ?>, K> keyFunction() { return (Function) EntryFunction.KEY; } @SuppressWarnings("unchecked") static <V extends @Nullable Object> Function<Entry<?, V>, V> valueFunction() { return (Function) EntryFunction.VALUE; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 161.6K bytes - Viewed (0)