Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1451 - 1460 of 2,310 for rethrow (0.06 seconds)

  1. src/main/java/jcifs/internal/smb2/lock/Smb2LockResponse.java

            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (structureSize != 4) {
                throw new SMBProtocolDecodingException("Expected structureSize = 4");
            }
            return 4;
        }
    
    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)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/OldestConflictResolver.java

                return version1.compareTo(version2) <= 0 ? node1 : node2;
            } catch (OverConstrainedVersionException exception) {
                // TODO log message or throw exception?
    
                return null;
            }
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  3. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/GraphTest.java

            Graph g = new Graph();
            data.parallelStream().forEach(s -> {
                try {
                    g.addEdge(s[0], s[1]);
                } catch (Exception e) {
                    throw new RuntimeException(e);
                }
            });
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 2K bytes
    - Click Count (0)
  4. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/SimpleProblemCollector.java

                case WARNING:
                    if (!warnings.contains(req.getMessage())) {
                        warnings.add(req.getMessage());
                    }
                    break;
                default:
                    throw new IllegalArgumentException("Unknown severity: " + req.getSeverity());
            }
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

              for (Service service : servicesByState().values()) {
                if (service.state() != NEW) {
                  servicesInBadStates.add(service);
                }
              }
              throw new IllegalArgumentException(
                  "Services started transitioning asynchronously before "
                      + "the ServiceManager was constructed: "
                      + servicesInBadStates);
            }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 33.2K bytes
    - Click Count (1)
  6. src/test/java/org/codelibs/fess/helper/FileTypeHelperTest.java

            fileTypeHelper = new FileTypeHelper();
        }
    
        @Test
        public void test_init() {
            try {
                fileTypeHelper.init();
            } catch (Exception e) {
                fail("init() should not throw an exception: " + e.getMessage());
            }
        }
    
        @Test
        public void test_add() {
            fileTypeHelper.add("application/pdf", "pdf");
            assertEquals("pdf", fileTypeHelper.get("application/pdf"));
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/CartesianList.java

        try {
          for (int i = axes.size() - 1; i >= 0; i--) {
            axesSizeProduct[i] = Math.multiplyExact(axesSizeProduct[i + 1], axes.get(i).size());
          }
        } catch (ArithmeticException e) {
          throw new IllegalArgumentException(
              "Cartesian product too large; must have size at most Integer.MAX_VALUE");
        }
        this.axesSizeProduct = axesSizeProduct;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 31 13:15:26 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

      private final ListenableFutureTask<Integer> task =
          ListenableFutureTask.create(
              () -> {
                runLatch.countDown();
                taskLatch.await();
                if (throwException) {
                  throw new IllegalStateException("Fail");
                }
                return 25;
              });
    
      @Override
      protected void setUp() throws Exception {
        super.setUp();
    
        exec = newCachedThreadPool();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java

            String msg = "downgrade not allowed";
    
            // Act & Assert - verify thrown type and message
            SMBProtocolDowngradeException thrown = assertThrows(SMBProtocolDowngradeException.class, () -> {
                throw new SMBProtocolDowngradeException(msg);
            });
            assertEquals(msg, thrown.getMessage());
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  10. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

          monitor.leave();
        }
      }
    
      /**
       * Returns an iterator over the elements in this queue in proper sequence. The returned {@code
       * Iterator} is a "weakly consistent" iterator that will never throw {@link
       * ConcurrentModificationException}, and guarantees to traverse elements as they existed upon
       * construction of the iterator, and may (but is not guaranteed to) reflect any modifications
       * subsequent to construction.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 22.4K bytes
    - Click Count (0)
Back to Top