Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2821 - 2830 of 3,670 for throwIf (0.05 seconds)

  1. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/InternalBwcGitPlugin.java

                            return true;
                        }
                        if ("false".equals(fetchProp)) {
                            return false;
                        }
                        throw new GradleException("tests.bwc.git_fetch_latest must be [true] or [false] but was [" + fetchProp + "]");
                    });
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 9.9K bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

                getMap()
                    .compute(
                        k0(),
                        (k, v) -> {
                          assertEquals(k0(), k);
                          assertEquals(v0(), v);
                          throw new SomeUncheckedException();
                        }));
        expectUnchanged();
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      public void testCompute_absentFunctionThrows() {
        assertThrows(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 31 14:51:04 GMT 2024
    - 7.2K bytes
    - Click Count (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

                getMap()
                    .compute(
                        k0(),
                        (k, v) -> {
                          assertEquals(k0(), k);
                          assertEquals(v0(), v);
                          throw new SomeUncheckedException();
                        }));
        expectUnchanged();
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      public void testCompute_absentFunctionThrows() {
        assertThrows(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 7.1K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/AbstractMultiset.java

      public int add(@ParametricNullness E element, int occurrences) {
        throw new UnsupportedOperationException();
      }
    
      @CanIgnoreReturnValue
      @Override
      public final boolean remove(@Nullable Object element) {
        return remove(element, 1) > 0;
      }
    
      @CanIgnoreReturnValue
      @Override
      public int remove(@Nullable Object element, int occurrences) {
        throw new UnsupportedOperationException();
      }
    
      @CanIgnoreReturnValue
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

                        if (k.isInstance(x)) {
                          return k.cast(x);
                        }
                      }
                      throw new NoSuchFieldError("the Unsafe");
                    });
          } catch (PrivilegedActionException e) {
            throw new RuntimeException("Could not initialize intrinsics", e.getCause());
          }
        }
    
        static {
          theUnsafe = getUnsafe();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideFileTest.java

    import org.junit.jupiter.api.TestInfo;
    
    public class StemmerOverrideFileTest extends UnitFessTestCase {
        private StemmerOverrideFile stemmerOverrideFile;
    
        @Override
        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
            stemmerOverrideFile = new StemmerOverrideFile("1", "dummy", new Date());
            List<StemmerOverrideItem> itemList = new ArrayList<>();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  7. module-tests/src/test/java/okhttp3/modules/test/JavaModuleTest.java

      public void testVisibility() {
        // Just check we can run code that depends on OkHttp types
        OkHttpCaller.callOkHttp(HttpUrl.get("https://square.com/robots.txt"));
      }
    
      @Test
      public void testMockWebServer() throws IOException {
        MockWebServer server = new MockWebServer();
        server.enqueue(new MockResponse(200, Headers.of(), "Hello, Java9!"));
        server.start();
    
        // Just check we can run code that depends on OkHttp types
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Sep 21 06:22:22 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SMBProtocolDowngradeException.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.smb;
    
    import jcifs.CIFSException;
    
    /**
     * Exception thrown when an SMB protocol downgrade attack is detected.
     * Indicates that the negotiated protocol version is lower than expected or required.
     *
     * @author mbechler
     *
     */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  9. src/main/java/jcifs/util/transport/TransportException.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.util.transport;
    
    import jcifs.CIFSException;
    
    /**
     * Exception class for transport layer errors.
     * This exception is thrown when transport-related communication errors occur.
     */
    public class TransportException extends CIFSException {
    
        /**
         *
         */
        private static final long serialVersionUID = 3743631204022885618L;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/QueueDispatcher.kt

     * [enqueue].
     */
    public open class QueueDispatcher : Dispatcher() {
      protected val responseQueue: BlockingQueue<MockResponse> = LinkedBlockingQueue()
      private var failFastResponse: MockResponse? = null
    
      @Throws(InterruptedException::class)
      override fun dispatch(request: RecordedRequest): MockResponse {
        // To permit interactive/browser testing, ignore requests for favicons.
        val requestLine = request.requestLine
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Jun 14 16:09:26 GMT 2025
    - 2.9K bytes
    - Click Count (0)
Back to Top