Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 101 for IndexOutOfBoundsException (0.23 sec)

  1. android/guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

        assertThat(e.escape("\0HeLLo \uD800\uDC00 WorlD!\n"))
            .isEqualTo("\0HELLO \uD800\uDC00 WORLD!\n");
      }
    
      public void testCodePointAt_indexOutOfBoundsException() {
        assertThrows(
            IndexOutOfBoundsException.class, () -> UnicodeEscaper.codePointAt("Testing...", 4, 2));
      }
    
      private static String escapeAsString(Escaper e, String s) {
        return e.escape(s);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

        assertThat(e.escape("\0HeLLo \uD800\uDC00 WorlD!\n"))
            .isEqualTo("\0HELLO \uD800\uDC00 WORLD!\n");
      }
    
      public void testCodePointAt_indexOutOfBoundsException() {
        assertThrows(
            IndexOutOfBoundsException.class, () -> UnicodeEscaper.codePointAt("Testing...", 4, 2));
      }
    
      private static String escapeAsString(Escaper e, String s) {
        return e.escape(s);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Booleans.java

       * exclusive. This is equivalent to {@code
       * Collections.reverse(Booleans.asList(array).subList(fromIndex, toIndex))}, but is likely to be
       * more efficient.
       *
       * @throws IndexOutOfBoundsException if {@code fromIndex < 0}, {@code toIndex > array.length}, or
       *     {@code toIndex > fromIndex}
       * @since 23.1
       */
      public static void reverse(boolean[] array, int fromIndex, int toIndex) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/primitives/Booleans.java

       * exclusive. This is equivalent to {@code
       * Collections.reverse(Booleans.asList(array).subList(fromIndex, toIndex))}, but is likely to be
       * more efficient.
       *
       * @throws IndexOutOfBoundsException if {@code fromIndex < 0}, {@code toIndex > array.length}, or
       *     {@code toIndex > fromIndex}
       * @since 23.1
       */
      public static void reverse(boolean[] array, int fromIndex, int toIndex) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ListsTest.java

        assertThrows(
            IndexOutOfBoundsException.class,
            () ->
                transform(
                        ImmutableList.of("foo", "bar"),
                        new Function<String, String>() {
                          @Override
                          public String apply(String input) {
                            throw new IndexOutOfBoundsException();
                          }
                        })
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/PercentEscaper.java

      }
    
      /** Escapes the given Unicode code point in UTF-8. */
      @Override
      protected char @Nullable [] escape(int cp) {
        // We should never get negative values here but if we do it will throw an
        // IndexOutOfBoundsException, so at least it will get spotted.
        if (cp < safeOctets.length && safeOctets[cp]) {
          return null;
        } else if (cp == ' ' && plusForSpace) {
          return plusSign;
        } else if (cp <= 0x7F) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt

        val url = base.newBuilder().setPathSegment(1, "/").build()
        assertThat(url.encodedPath).isEqualTo("/a/%2F/c")
      }
    
      @Test
      fun setPathSegmentOutOfBounds() {
        assertFailsWith<IndexOutOfBoundsException> {
          HttpUrl.Builder().setPathSegment(1, "a")
        }
      }
    
      @Test
      fun setEncodedPathSegmentEncodes() {
        val base = parse("http://host/a/b/c")
        assertThat(
          base
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Aug 04 07:38:48 UTC 2025
    - 69.9K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProblemCollector.java

                        while (!problems.isEmpty()) {
                            try {
                                return problems.remove(0) != null;
                            } catch (IndexOutOfBoundsException e) {
                                // empty, continue
                            }
                        }
                    }
                }
                return false;
            }
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jul 18 17:30:19 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/ProcessHelperTest.java

            } catch (Exception e) {
                // Expected - empty command list should cause exception
                assertTrue(e instanceof JobProcessingException || e instanceof IndexOutOfBoundsException);
            }
        }
    
        public void test_nullCallback() {
            String sessionId = "test_null_callback";
            List<String> cmdList = Arrays.asList("echo", "hello");
    
            try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Chars.java

       * exclusive. This is equivalent to {@code
       * Collections.reverse(Chars.asList(array).subList(fromIndex, toIndex))}, but is likely to be more
       * efficient.
       *
       * @throws IndexOutOfBoundsException if {@code fromIndex < 0}, {@code toIndex > array.length}, or
       *     {@code toIndex > fromIndex}
       * @since 23.1
       */
      public static void reverse(char[] array, int fromIndex, int toIndex) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
Back to top