Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1241 - 1250 of 1,782 for scratch (0.05 seconds)

  1. internal/http/dial_linux.go

    			}
    
    			if opts.Interface != "" {
    				if h, _, err := net.SplitHostPort(address); err == nil {
    					address = h
    				}
    				// Create socket on specific vrf device.
    				// To catch all kinds of special cases this filters specifically for loopback networks.
    				if ip := net.ParseIP(address); ip != nil && !ip.IsLoopback() {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Jul 23 10:53:03 GMT 2024
    - 5K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/CopyRestApiTask.java

                if (yamlTestOutputDir.exists()) {
                    return Files.walk(yamlTestOutputDir.toPath()).anyMatch(p -> p.getFileName().toString().endsWith("yml"));
                }
            } catch (IOException e) {
                throw new IllegalStateException(String.format("Error determining if this project [%s] has rest tests.", getProject()), e);
            }
            return false;
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 22 07:24:59 GMT 2021
    - 7.4K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

                    actualIsOccupiedByCurrentThread.set(monitor.isOccupiedByCurrentThread());
                    actualOccupiedDepth.set(monitor.getOccupiedDepth());
                  } catch (Throwable t) {
                    thrown.set(t);
                  }
                }));
        assertThat(thrown.get()).isNull();
        assertEquals(expectedIsOccupied, actualIsOccupied.get());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 5K bytes
    - Click Count (0)
  4. guava-testlib/test/com/google/common/testing/TearDownStackTest.java

        assertEquals(false, tearDownOne.ran);
        assertEquals(false, tearDownTwo.ran);
    
        try {
          stack.runTearDown();
          fail("runTearDown should have thrown an exception");
        } catch (RuntimeException expected) {
          assertThat(expected).hasMessageThat().isEqualTo("two");
          assertThat(getOnlyElement(asList(expected.getSuppressed())))
              .hasMessageThat()
              .isEqualTo("one");
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/net/UrlEscaperTesting.java

        // URL escapers should throw null pointer exceptions for null input
        try {
          e.escape((String) null);
          fail("Escaping null string should throw exception");
        } catch (NullPointerException x) {
          // pass
        }
    
        // All URL escapers should leave 0-9, A-Z, a-z unescaped
        assertUnescaped(e, 'a');
        assertUnescaped(e, 'z');
        assertUnescaped(e, 'A');
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

                    actualIsOccupiedByCurrentThread.set(monitor.isOccupiedByCurrentThread());
                    actualOccupiedDepth.set(monitor.getOccupiedDepth());
                  } catch (Throwable t) {
                    thrown.set(t);
                  }
                }));
        assertThat(thrown.get()).isNull();
        assertEquals(expectedIsOccupied, actualIsOccupied.get());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 5K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

        CountDownLatch okayToRun = new CountDownLatch(1);
        AtomicInteger runCalled = new AtomicInteger();
        list.add(
            () -> {
              try {
                okayToRun.await();
              } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
                throw new RuntimeException(e);
              }
              runCalled.getAndIncrement();
            },
            directExecutor());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  8. README.md

    ```
    
    ### Exception Handling
    ```java
    import org.codelibs.core.exception.*;
    
    // Runtime exception wrappers eliminate try-catch boilerplate
    try {
        // Code that might throw checked exceptions
        return ClassUtil.newInstance(className); // Wraps checked exceptions automatically
    } catch (ClassNotFoundRuntimeException e) {
        // Handle the wrapped exception
        logger.error("Class not found: " + className, e);
    }
    ```
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sun Aug 31 02:56:02 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/core/io/ResourceUtil.java

            final URL url = getResourceNoException(path, extension);
            if (url == null) {
                return null;
            }
            try {
                return url.openStream();
            } catch (final IOException e) {
                return null;
            }
        }
    
        /**
         * Returns whether the resource exists in the context class loader.
         *
         * @param path
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

                // The important point is that the validation logic exists in the code
                assertTrue(true, "Negotiate context data length validation exists in code (max 1024 bytes)");
            } catch (SMBProtocolDecodingException e) {
                // If exception thrown, validation is working
                assertTrue(e.getMessage().contains("Invalid negotiate context data length") || e.getMessage().contains("Buffer too small")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 15.8K bytes
    - Click Count (0)
Back to Top