Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 921 - 930 of 3,637 for throwIf (0.63 seconds)

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

            }
        }
    
        @Test
        void testReadDataWireFormatWithEmptyData() throws SMBProtocolDecodingException {
            byte[] buffer = new byte[100];
            int result = response.readDataWireFormat(buffer, 0, 0);
            assertEquals(0, result);
        }
    
        @Test
        void testReadDataWireFormatAtBufferBoundary() throws SMBProtocolDecodingException {
            // Test with data exactly matching output buffer size
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  2. benchmarks/src/main/java/org/elasticsearch/common/bytes/BytesArrayReadLongBenchmark.java

        @Setup
        public void initResults() throws IOException {
            final BytesStreamOutput tmp = new BytesStreamOutput();
            final long bytes = new ByteSizeValue(dataMb, ByteSizeUnit.MB).getBytes();
            for (int i = 0; i < bytes / 8; i++) {
                tmp.writeLong(i);
            }
            bytesArray = tmp.copyBytes();
            if (bytesArray instanceof BytesArray == false) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Apr 12 20:25:06 GMT 2021
    - 2.3K bytes
    - Click Count (0)
  3. benchmarks/src/main/java/org/elasticsearch/common/bytes/PagedBytesReferenceReadLongBenchmark.java

            pagedBytes = tmp.bytes();
            if (pagedBytes instanceof PagedBytesReference == false) {
                throw new AssertionError("expected PagedBytesReference but saw [" + pagedBytes.getClass() + "]");
            }
            this.streamInput = pagedBytes.streamInput();
        }
    
        @Benchmark
        public long readLong() throws IOException {
            long res = 0L;
            streamInput.reset();
            final int reads = pagedBytes.length() / 8;
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Apr 12 20:25:06 GMT 2021
    - 2.3K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

      }
    
      /**
       * Removes and returns the greatest element of this queue.
       *
       * @throws NoSuchElementException if the queue is empty
       */
      @CanIgnoreReturnValue
      public E removeLast() {
        if (isEmpty()) {
          throw new NoSuchElementException();
        }
        return removeAndGet(getMaxElementIndex());
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 13:11:08 GMT 2026
    - 34K bytes
    - Click Count (0)
  5. guava/src/com/google/common/cache/AbstractLoadingCache.java

      @Override
      public V getUnchecked(K key) {
        try {
          return get(key);
        } catch (ExecutionException e) {
          throw new UncheckedExecutionException(e.getCause());
        }
      }
    
      @Override
      public ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException {
        Map<K, V> result = new LinkedHashMap<>();
        for (K key : keys) {
          if (!result.containsKey(key)) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java

            @ParameterizedTest
            @ValueSource(ints = { 0, 1, 5, 10 })
            @DisplayName("Reads structure size 4 and returns 4 for various start indexes")
            void returnsFour_whenStructureSizeIsFour(int start) throws Exception {
                // Arrange: build a buffer that has the little-endian value 4 at 'start'
                int len = start + 2; // need at least two bytes from start
                byte[] buffer = new byte[len + 3];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java

            super(messageBuilderFactory, secDispatcher);
        }
    
        @SuppressWarnings("MethodLength")
        @Override
        public int doExecute(EncryptContext context) throws Exception {
            boolean force = context.options().force().orElse(false);
            boolean yes = context.options().yes().orElse(false);
    
            if (configExists() && !force) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 12K bytes
    - Click Count (0)
  8. src/main/java/jcifs/util/SecureKeyManager.java

         *
         * @param sessionId the session ID
         * @return the new key version number
         * @throws GeneralSecurityException if rotation fails
         */
        public int rotateSessionKey(String sessionId) throws GeneralSecurityException {
            checkNotClosed();
    
            if (!sessionKeys.containsKey(sessionId)) {
                throw new IllegalArgumentException("Session key not found: " + sessionId);
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 21.5K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

        this.iterator = iterator;
      }
    
      @Override
      public Iterator<E> iterator() {
        if (iterator == null) {
          // TODO: throw something else? Do we worry that people's code and tests
          // might be relying on this particular type of exception?
          throw new IllegalStateException();
        }
        try {
          return iterator;
        } finally {
          iterator = null;
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        }
    
        @Override
        public void await() throws InterruptedException {
          lock.lock();
          try {
            condition.await();
          } finally {
            lock.unlock();
          }
        }
    
        @Override
        public boolean await(long time, TimeUnit unit) throws InterruptedException {
          lock.lock();
          try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
Back to Top