Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1771 - 1780 of 1,947 for threw (0.02 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

      // NOTE: All durations in these tests are expressed in milliseconds
      @Override
      protected void setUp() {
        // Clear any previous interrupt before running the test.
        if (Thread.currentThread().isInterrupted()) {
          throw new AssertionError(
              "Thread interrupted on test entry. "
                  + "Some test probably didn't clear the interrupt state");
        }
    
        tearDownStack.addTearDown(
            new TearDown() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/RegularImmutableMap.java

              checkNoConflict(/* safe= */ false, "key", keyBucketHead, key + "=" + newValue);
            } else {
              return keyBucketHead;
            }
          }
          if (++bucketSize > MAX_HASH_BUCKET_LENGTH) {
            throw new BucketOverflowException();
          }
        }
        return null;
      }
    
      static final class BucketOverflowException extends Exception {}
    
      @Override
      public @Nullable V get(@Nullable Object key) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/spnego/NegTokenInitTest.java

            void testNullMechanisms() {
                NegTokenInit init = new NegTokenInit(null, 0, null, null);
                assertNull(init.getMechanisms());
    
                // Should not throw when converting to byte array
                assertDoesNotThrow(() -> init.toByteArray());
            }
    
            @Test
            @DisplayName("Large MIC values are handled correctly")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/DocumentUtilTest.java

        }
    
        public void test_encodeUrl_empty_and_null() {
            assertEquals("", DocumentUtil.encodeUrl(""));
            try {
                DocumentUtil.encodeUrl(null);
                fail("Should throw NullPointerException");
            } catch (NullPointerException e) {
                // Expected
            }
        }
    
        public void test_encodeUrl_unicode() {
            assertEquals("%3F", DocumentUtil.encodeUrl("あ"));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        }
      }
    
      private static class ExpectedHashCode {
        final byte[] bytes;
        final int asInt;
        final Long asLong; // null means that asLong should throw an exception
        final String toString;
    
        ExpectedHashCode(byte[] bytes, int asInt, @Nullable Long asLong, String toString) {
          this.bytes = bytes;
          this.asInt = asInt;
          this.asLong = asLong;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ObjectArrays.java

      // We do this instead of Preconditions.checkNotNull to save boxing and array
      // creation cost.
      @CanIgnoreReturnValue
      static Object checkElementNotNull(Object element, int index) {
        if (element == null) {
          throw new NullPointerException("at index " + index);
        }
        return element;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

                @Override
                public int decode(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
                    if (buffer == null || buffer.length < bufferIndex + 4) {
                        throw new SMBProtocolDecodingException("Buffer too small");
                    }
                    return 4;
                }
    
                @Override
                public int encode(byte[] dst, int dstIndex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

            i += 12;
            if (len != 0) {
                len--;
                final int size = len * 2;
                try {
                    if (size < 0 || size > 0xFFFF) {
                        throw new NdrException(NdrException.INVALID_CONFORMANCE);
                    }
                    val = new String(buf, i, size, "UTF-16LE");
                    i += size + 2;
                } catch (final UnsupportedEncodingException uee) {}
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  9. 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));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/elevateword/ApiAdminElevatewordAction.java

                    elevateWordService.importCsv(reader);
                    suggestHelper.storeAllElevateWords(false);
                } catch (final Exception e) {
                    throw new FessSystemException("Failed to import data.", e);
                }
            });
            return asJson(new ApiResult.ApiResponse().status(ApiResult.Status.OK).result());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top