- Sort Score
- Result 10 results
- Languages All
Results 451 - 460 of 709 for failed (0.06 sec)
-
UnmodifiableCollectionTests.java
L50: public static void assertMapEntryIsUnmodifiable(Entry<?, ?> entry) { L51: try { L52: // fine because the call is going to fail without modifying the entry L53: @SuppressWarnings("unchecked") L54: Entry<?, @Nullable Object> nullableValueEntry = (Entry<?, @Nullable Object>) entry; L55: nullableValueEntry.setValue(null); L56: fail("setValue on unmodifiable Map.Entry succeeded"); L57: } catch (UnsupportedOperationException expected) { L58: } L59: } L60: L61: ...github.com/google/guava/android/guava-testlib/s...Wed Oct 30 16:15:19 UTC 2024 14.6K bytes -
Closer.java
declare all of the checked exception L123: * types your try block can throw when calling an overload of this method so as to avoid losing L124: * the original exception type. L125: * L126: * <p>This method always throws, and as such should be called as {@code throw closer.rethrow(e);} L127: * to ensure the compiler knows that it will throw. L128: * L129: * @return this method does not return; it always throws L130: * @throws IOException when the given throwable is an IOException L131:...github.com/google/guava/android/guava/src/com/g...Tue May 07 15:26:58 UTC 2024 10.4K bytes -
AbstractExecutionThreadService.java
MoreExecutors.renamingDecorator(executor(), () -> serviceName()); L45: executor.execute( L46: () -> { L47: try { L48: startUp(); L49: notifyStarted(); L50: // If stopAsync() is called while starting we may be in the STOPPING state in L51: // which case we should skip right down to shutdown. L52: if (isRunning()) { L53: try { L54: AbstractExecutionThreadService.this.run();...github.com/google/guava/guava/src/com/google/co...Thu Oct 17 13:00:28 UTC 2024 7.3K bytes -
ByteSource.java
returns {@link Optional#absent}. Some sources, such as a file, L174: * may return a non-absent value. Note that in such cases, it is <i>possible</i> that this method L175: * will return a different number of bytes than would be returned by reading all of the bytes (for L176: * example, some special files may return a size of 0 despite actually having content when read). L177: * L178: * <p>Additionally, for mutable sources such as files, a subsequent read may return a different L179: * number...github.com/google/guava/android/guava/src/com/g...Sat Oct 19 00:26:48 UTC 2024 26.2K bytes -
InvalidatableSetTest.java
copyOfModifiedSet = ImmutableSet.copyOf(wrappedSet); // {2,3} L48: // sanity check on construction of copyOfModifiedSet L49: assertThat(wrappedSet).isEqualTo(copyOfModifiedSet); L50: L51: // setToTest should throw when it calls equals(), or equals is called on it, except for itself L52: assertThat(setToTest).isEqualTo(setToTest); L53: assertThrows(IllegalStateException.class, () -> setToTest.equals(wrappedSet)); L54: assertThrows(IllegalStateException.class, () -> setToTest.equals(copyOfWrappedSet));...github.com/google/guava/android/guava-tests/tes...Mon Jan 22 17:29:38 UTC 2024 2.2K bytes -
ValueGraph.java
common with {@code node} in L170: * this graph. L171: * L172: * <p>This is equal to the union of {@link #predecessors(Object)} and {@link #successors(Object)}. L173: * L174: * <p>If {@code node} is removed from the graph after this method is called, the {@code Set} L175: * {@code view} returned by this method will be invalidated, and will throw {@code L176: * IllegalStateException} if it is accessed in any way, with the following exceptions: L177: * L178: * <ul> L179: * <li>{@code...github.com/google/guava/guava/src/com/google/co...Thu Oct 10 15:41:27 UTC 2024 16K bytes -
SubscriberExceptionContext.java
getEventBus() { L53: return eventBus; L54: } L55: L56: /** @return The event object that caused the subscriber to throw. */ L57: public Object getEvent() { L58: return event; L59: } L60: L61: /** @return The object context that the subscriber was called on. */ L62: public Object getSubscriber() { L63: return subscriber; L64: } L65: L66: /** @return The subscribed method that threw the exception. */ L67: public Method getSubscriberMethod() { L68: return subscriberMethod; L69: } L70:}...github.com/google/guava/android/guava/src/com/g...Thu Apr 22 13:05:46 UTC 2021 2.2K bytes -
BsThumbnailQueue.java
!= null) { L95: addFieldToSource(sourceMap, "thumbnail_id", thumbnailId); L96: } L97: return sourceMap; L98: } L99: L100: protected void addFieldToSource(Map<String, Object> sourceMap, String field, Object value) { L101: sourceMap.put(field, value); L102: } L103: L104: // =================================================================================== L105: // Basic Override L106:...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 6.2K bytes -
Dispatcher.java
* <p><b>Note:</b> The dispatcher is orthogonal to the subscriber's {@code Executor}. The dispatcher L30: * controls the order in which events are dispatched, while the executor controls how (i.e. on which L31: * thread) the subscriber is actually called when an event is dispatched to it. L32: * L33: * @author Colin Decker L34: */ L35:@ElementTypesAreNonnullByDefault L36:abstract class Dispatcher { L37: L38: /** L39: * Returns a dispatcher that queues events that are posted reentrantly on a thread...github.com/google/guava/guava/src/com/google/co...Fri Dec 15 19:31:54 UTC 2023 7.3K bytes -
IteratorTester.java
changing its state, so the tester needs a steady supply of fresh Iterators. L49: * L50: * <p>If your iterator supports modification through {@code remove()}, you may wish to override the L51: * verify() method, which is called after each sequence and is guaranteed to be called L52: * using the latest values obtained from {@link IteratorTester#newTargetIterator()}. L53: * L54: * <p>The value you pass to the parameter {@code steps} should be greater than the length of your L55: * iterator, so...github.com/google/guava/android/guava-testlib/s...Wed Feb 21 16:49:06 UTC 2024 4.3K bytes