Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 2,240 for throwIf (0.24 seconds)

  1. android/guava/src/com/google/common/base/Joiner.java

          throws IOException {
        return appendTo(appendable, iterable(first, second, rest));
      }
    
      /**
       * Appends the string representation of each of {@code parts}, using the previously configured
       * separator between each, to {@code builder}. Identical to {@link #appendTo(Appendable,
       * Iterable)}, except that it does not throw {@link IOException}.
       */
      @CanIgnoreReturnValue
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  2. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

          putIndex = 0;
          takeIndex = 0;
        } finally {
          monitor.leave();
        }
      }
    
      /**
       * @throws UnsupportedOperationException {@inheritDoc}
       * @throws ClassCastException {@inheritDoc}
       * @throws NullPointerException {@inheritDoc}
       * @throws IllegalArgumentException {@inheritDoc}
       */
      @CanIgnoreReturnValue
      @Override
      public int drainTo(Collection<? super E> c) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 22.4K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketWriter.kt

      /** Send a ping with the supplied [payload]. */
      @Throws(IOException::class)
      fun writePing(payload: ByteString) {
        writeControlFrame(OPCODE_CONTROL_PING, payload)
      }
    
      /** Send a pong with the supplied [payload]. */
      @Throws(IOException::class)
      fun writePong(payload: ByteString) {
        writeControlFrame(OPCODE_CONTROL_PONG, payload)
      }
    
      /**
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 6K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/cache/TestingCacheLoaders.java

      }
    
      /** Returns a {@link CacheLoader} that throws the given error for every request. */
      static <K, V> CacheLoader<K, V> errorLoader(Error e) {
        checkNotNull(e);
        return new CacheLoader<K, V>() {
          @Override
          public V load(K key) {
            throw e;
          }
        };
      }
    
      /** Returns a {@link CacheLoader} that throws the given exception for every request. */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 13:13:59 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/lang/MethodUtil.java

         * @throws IllegalAccessRuntimeException
         *             If this {@link Method} object enforces Java language access control and the underlying method is not accessible
         * @throws InvocationTargetRuntimeException
         *             If the underlying method throws an exception
         * @see Method#invoke(Object, Object[])
         */
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/io/AppendableWriter.java

       */
    
      @Override
      public void write(int c) throws IOException {
        checkNotClosed();
        target.append((char) c);
      }
    
      @Override
      public void write(String str) throws IOException {
        checkNotNull(str);
        checkNotClosed();
        target.append(str);
      }
    
      @Override
      public void write(String str, int off, int len) throws IOException {
        checkNotNull(str);
        checkNotClosed();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:37:28 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. .teamcity/scripts/CheckBadMerge.java

            try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in, StandardCharsets.UTF_8))) {
                return br.lines()
                    .map(String::trim)
                    .filter(s -> !s.isEmpty())
                    .collect(Collectors.toList());
            }
        }
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 30 16:25:09 GMT 2026
    - 9K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/io/ByteSource.java

        }
    
        @Override
        public InputStream openStream() throws IOException {
          return sliceStream(ByteSource.this.openStream());
        }
    
        @Override
        public InputStream openBufferedStream() throws IOException {
          return sliceStream(ByteSource.this.openBufferedStream());
        }
    
        private InputStream sliceStream(InputStream in) throws IOException {
          if (offset > 0) {
            long skipped;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/primitives/ReflectionFreeAssertThrows.java

            return caught;
          }
          throw new AssertionError(
              "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t);
        }
        if (userPassedSupplier) {
          throw new AssertionError(
              "expected to throw "
                  + expectedThrowable.getSimpleName()
                  + " but returned result: "
                  + result);
        } else {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/net/ReflectionFreeAssertThrows.java

            return caught;
          }
          throw new AssertionError(
              "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t);
        }
        if (userPassedSupplier) {
          throw new AssertionError(
              "expected to throw "
                  + expectedThrowable.getSimpleName()
                  + " but returned result: "
                  + result);
        } else {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.2K bytes
    - Click Count (0)
Back to Top