Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 231 - 240 of 291 for UnsupportedOperationException (0.12 seconds)

  1. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertThrows(NoSuchElementException.class, () -> iterator.previous());
        assertThrows(UnsupportedOperationException.class, () -> iterator.remove());
        assertThrows(UnsupportedOperationException.class, () -> iterator.set("a"));
        assertThrows(UnsupportedOperationException.class, () -> iterator.add("a"));
      }
    
      public void testEmptyModifiableIterator() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 56.7K bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testSetCountConditional_negativeOldCount_addUnsupported() {
        try {
          assertSetCountNegativeOldCount();
        } catch (UnsupportedOperationException tolerated) {
        }
      }
    
      // Incorrect expected present count.
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testSetCountConditional_oldCountTooLarge() {
        assertFalse(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 4K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

            if (!iterator.hasNext()) {
              iterator = iterable.iterator();
            }
            return iterator.next();
          }
    
          @Override
          public void remove() {
            throw new UnsupportedOperationException();
          }
        };
      }
    
      static <T extends @Nullable Object> T get(Iterator<T> iterator, int position) {
        for (int i = 0; i < position; i++) {
          iterator.next();
        }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 17.2K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

                  endOfData();
                }
                haveBeenCalled = true;
                return 0;
              }
            };
    
        assertEquals(0, (int) iter.next());
    
        assertThrows(UnsupportedOperationException.class, iter::remove);
      }
    
      public void testReentrantHasNext() {
        Iterator<Integer> iter =
            new AbstractIterator<Integer>() {
              @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  5. compat/maven-toolchain-model/src/main/java/org/apache/maven/toolchain/model/io/xpp3/MavenToolchainsXpp3Reader.java

         *         any.
         */
        public PersistedToolchains read(XmlPullParser parser, boolean strict) throws IOException, XmlPullParserException {
            throw new UnsupportedOperationException("Not yet implemented");
        }
    
        /**
         * @param reader a reader object.
         * @param strict a strict object.
         * @return PersistedToolchains
         * @throws IOException IOException if any.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat May 31 10:30:45 GMT 2025
    - 5K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSession.java

                } catch (Exception e) {
                    throw new RuntimeException("Unable to create repository", e);
                }
            } else {
                // TODO
                throw new UnsupportedOperationException("Not yet implemented");
            }
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/IterablesTest.java

       */
      private static class DiesOnIteratorArrayList extends ArrayList<String> {
        /**
         * @throws UnsupportedOperationException all the time
         */
        @Override
        public Iterator<String> iterator() {
          throw new UnsupportedOperationException();
        }
      }
    
      public void testGetLast_withDefault_not_empty_list() {
        // TODO: verify that this is the best testing strategy.
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 45.6K bytes
    - Click Count (0)
  8. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

                    throw new IllegalArgumentException();
                  }
    
                  @Override
                  public Integer next() {
                    // Wrong exception type.
                    throw new UnsupportedOperationException();
                  }
    
                  @Override
                  public boolean hasNext() {
                    return false;
                  }
                };
              }
            };
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

      }
    
      /**
       * Specifies whether the graph will allow self-loops (edges that connect a node to itself).
       * Attempting to add a self-loop to a graph that does not allow them will throw an {@link
       * UnsupportedOperationException}.
       *
       * <p>The default value is {@code false}.
       */
      @CanIgnoreReturnValue
      public ValueGraphBuilder<N, V> allowsSelfLoops(boolean allowsSelfLoops) {
        this.allowsSelfLoops = allowsSelfLoops;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        assertEquals(asList(b, c), copyToList(sortedMultiset.entrySet()));
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testPollFirstUnsupported() {
        assertThrows(UnsupportedOperationException.class, () -> sortedMultiset.pollFirstEntry());
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testLower() {
        resetWithHole();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 20:14:36 GMT 2024
    - 26K bytes
    - Click Count (0)
Back to Top