Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 3621 - 3630 of 3,747 for throwIf (0.06 seconds)

  1. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

        @Test
        @DisplayName("Methods should handle empty buffer")
        void testMethodsWithEmptyBuffer() {
            // Arrange
            byte[] emptyBuffer = new byte[0];
    
            // Act & Assert - These should not throw exceptions
            assertEquals(0, response.writeSetupWireFormat(emptyBuffer, 0));
            assertEquals(0, response.writeParametersWireFormat(emptyBuffer, 0));
            assertEquals(0, response.writeDataWireFormat(emptyBuffer, 0));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/hash/HashFunction.java

      /**
       * Shortcut for {@code newHasher().putBytes(input, off, len).hash()}. The implementation
       * <i>might</i> perform better than its longhand equivalent, but should not perform worse.
       *
       * @throws IndexOutOfBoundsException if {@code off < 0} or {@code off + len > bytes.length} or
       *     {@code len < 0}
       */
      HashCode hashBytes(byte[] input, int off, int len);
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java

                            .setDescription("Use -it,--install-toolchains instead.")
                            .get())
                    .build());
        }
    
        public CommandLine parse(String[] args) throws ParseException {
            // We need to eat any quotes surrounding arguments...
            String[] cleanArgs = CleanArgument.cleanArgs(args);
    
            DefaultParser parser = DefaultParser.builder()
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Aug 06 04:56:48 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt

        val address = canonicalizeInetAddress(inetAddressByteArray)
        if (address.size == 16) return inet6AddressToAscii(address)
        if (address.size == 4) return inet4AddressToAscii(address) // An IPv4-mapped IPv6 address.
        throw AssertionError("Invalid IPv6 address: '$host'")
      }
    
      val result = idnToAscii(host) ?: return null
      if (result.isEmpty()) return null
      if (result.containsInvalidHostnameAsciiCodes()) return null
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  5. 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
    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)
  6. src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java

                bb.putShort((short) 0); // tflags high bytes
    
                // Invalid referral version
                bb.putShort((short) 99); // unsupported version
    
                // Should throw exception for unsupported version
                assertThrows(Exception.class, () -> {
                    buffer.decode(testBuffer, 0, testBuffer.length);
                });
            }
        }
    
        @Nested
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      private SortedMultiset<E> sortedMultiset;
      private List<E> entries;
      private Entry<E> a;
      private Entry<E> b;
      private Entry<E> c;
    
      @Override
      public void setUp() throws Exception {
        super.setUp();
        sortedMultiset = (SortedMultiset<E>) getMultiset();
        entries =
            copyToList(
                getSubjectGenerator()
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 20:14:36 GMT 2024
    - 26K bytes
    - Click Count (0)
  8. src/main/webapp/js/admin/adminlte.min.js

    {}},f=function(){function e(e,t){if(this._element=e,this._parent=e.parents(".card").first(),this._settings=n.default.extend({},d,t),this._overlay=n.default(this._settings.overlayTemplate),e.hasClass(s)&&(this._parent=e),""===this._settings.source)throw new Error("Source url was not defined. Please specify a url in your CardRefresh source option.")}var t=e.prototype;return t.load=function(){var e=this;this._addOverlay(),this._settings.onLoadStart.call(n.default(this)),n.default.get(this._settings...
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Oct 26 01:49:09 GMT 2024
    - 45.3K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/helper/ActivityHelperTest.java

        private ActivityHelper activityHelper;
    
        private ThreadLocal<String> localLogMsg = new ThreadLocal<>();
    
        @Override
        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
            activityHelper = new ActivityHelper() {
                @Override
                protected void printByLtsv(final Map<String, String> valueMap) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 11:45:43 GMT 2026
    - 24.3K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        assertThat(SerializableTester.reserialize(multimap)).isSameInstanceAs(multimap);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableListMultimap.class);
        tester.ignore(ImmutableListMultimap.class.getMethod("get", Object.class));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 24.2K bytes
    - Click Count (0)
Back to Top