Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 404 for UnsupportedOperationException (0.41 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

       * UnsupportedOperationException."
       */
      abstract void setCountNoCheckReturnValue(E element, int count);
    
      private void assertSetCountIncreasingFailure(E element, int count) {
        try {
          setCountNoCheckReturnValue(element, count);
          fail("a call to multiset.setCount() to increase an element's count should throw");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableMultiset.java

       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final int add(E element, int occurrences) {
        throw new UnsupportedOperationException();
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

          map.put("b", "2");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
    
        try {
          map.putAll(ImmutableMap.of("b", "2"));
          fail();
        } catch (UnsupportedOperationException expected) {
        }
    
        try {
          map.entrySet().iterator().next().setValue("one");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java

      public void testReplaceValuesRemoveNotSupported() {
        List<V> values = Collections.singletonList(v3());
        try {
          multimap().replaceValues(k0(), values);
          fail("Expected UnsupportedOperationException");
        } catch (UnsupportedOperationException expected) {
          // success
        }
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      public void testReplaceValuesPutNotSupported() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/RecordingExecutor.kt

      override fun shutdownNow(): List<Runnable> {
        throw UnsupportedOperationException()
      }
    
      override fun isShutdown(): Boolean {
        return shutdown
      }
    
      override fun isTerminated(): Boolean {
        throw UnsupportedOperationException()
      }
    
      override fun awaitTermination(
        timeout: Long,
        unit: TimeUnit,
      ): Boolean {
        throw UnsupportedOperationException()
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableList.java

       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final void add(int index, E element) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the list unmodified.
       *
       * @throws UnsupportedOperationException always
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testRemove_unsupported() {
        try {
          getMap().remove(k0());
          fail("remove(present) should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException expected) {
        }
        expectUnchanged();
        assertEquals("remove(present) should not remove the element", v0(), get(k0()));
      }
    
      @MapFeature.Require(absent = SUPPORTS_REMOVE)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

        }
    
        @Override
        public E belowSamplesLesser() {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public E belowSamplesGreater() {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public E aboveSamplesLesser() {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public E aboveSamplesGreater() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/NullPointerTester.java

        /**
         * Exceptions should be {@link NullPointerException} or {@link UnsupportedOperationException}.
         */
        NPE_OR_UOE() {
          @Override
          public boolean isExpectedType(Throwable cause) {
            return cause instanceof NullPointerException
                || cause instanceof UnsupportedOperationException;
          }
        },
    
        /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 23.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/ListeningExecutorServiceTest.java

        }
    
        @Override
        public void execute(Runnable runnable) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public void shutdown() {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public List<Runnable> shutdownNow() {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public boolean isShutdown() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Fri Jun 02 12:45:23 GMT 2023
    - 4.5K bytes
    - Viewed (0)
Back to top