Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2101 - 2110 of 3,670 for throwIf (0.14 seconds)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/FileSizeFormat.java

        public void formatProgress(StringBuilder builder, long progressedSize, long size) {
            if (progressedSize < 0L) {
                throw new IllegalArgumentException("progressed file size cannot be negative: " + size);
            }
            if (size >= 0 && progressedSize > size) {
                throw new IllegalArgumentException(
                        "progressed file size cannot be greater than size: " + progressedSize + " > " + size);
            }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Apr 16 10:09:21 GMT 2025
    - 7K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/ValidateChangelogEntryTask.java

                    if (entry.getPr() == null) {
                        throw new GradleException(
                            "[" + path + "] must provide a [pr] number (only 'known-issue' and " + "'security' entries can omit this"
                        );
                    }
    
                    if (entry.getArea() == null) {
                        throw new GradleException(
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Sep 01 14:45:41 GMT 2021
    - 3.3K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/graph/MutableValueGraph.java

       *
       * @return the value previously associated with the edge connecting {@code nodeU} to {@code
       *     nodeV}, or null if there was no such edge.
       * @throws IllegalArgumentException if the introduction of the edge would violate {@link
       *     #allowsSelfLoops()}
       * @throws IllegalArgumentException if the endpoints are unordered and the graph is directed
       * @since 27.1
       */
      @CanIgnoreReturnValue
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  4. api/maven-api-core/src/test/java/org/apache/maven/api/MonotonicClockTest.java

            assertSame(clock, newClock, "withZone() should return the same clock instance");
        }
    
        @Test
        @DisplayName("MonotonicClock should maintain monotonic time progression")
        void testMonotonicBehavior() throws InterruptedException {
            Instant first = MonotonicClock.now();
            Thread.sleep(10); // Small delay
            Instant second = MonotonicClock.now();
            Thread.sleep(10); // Small delay
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jan 15 06:28:29 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/ForwardingRequestBody.kt

      private val delegate: RequestBody
    
      fun delegate(): RequestBody = delegate
    
      override fun contentType(): MediaType? = delegate.contentType()
    
      @Throws(IOException::class)
      override fun contentLength(): Long = delegate.contentLength()
    
      @Throws(IOException::class)
      override fun writeTo(sink: BufferedSink) {
        delegate.writeTo(sink)
      }
    
      override fun isDuplex(): Boolean = delegate.isDuplex()
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/witness/WitnessUnregisterMessage.java

         */
        public byte[] getContextHandle() {
            return contextHandle != null ? contextHandle.clone() : null;
        }
    
        @Override
        protected void encodeWitnessParameters(NdrBuffer buf) throws NdrException {
            // Encode input parameters for WitnessUnregister
    
            // Context handle (20 bytes) - this is both input and output (modified)
            if (contextHandle != null) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 09:06:40 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  7. compat/maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java

        void setAvailableVersions(List<ArtifactVersion> versions);
    
        boolean isOptional();
    
        void setOptional(boolean optional);
    
        ArtifactVersion getSelectedVersion() throws OverConstrainedVersionException;
    
        boolean isSelectedVersionKnown() throws OverConstrainedVersionException;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  8. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/ReleaseNotesGenerator.java

            TYPE_LABELS.put("regression", "Regressions");
            TYPE_LABELS.put("upgrade", "Upgrades");
        }
    
        static void update(File templateFile, File outputFile, Map<QualifiedVersion, Set<ChangelogEntry>> changelogs) throws IOException {
            final String templateString = Files.readString(templateFile.toPath());
    
            try (FileWriter output = new FileWriter(outputFile)) {
                output.write(generateFile(templateString, changelogs));
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Sep 01 14:45:41 GMT 2021
    - 4.5K bytes
    - Click Count (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableMultiset.java

      }
    
      @Override
      public int count(@Nullable Object element) {
        throw new AssertionError();
      }
    
      @Override
      public ImmutableSet<E> elementSet() {
        throw new AssertionError();
      }
    
      @Override
      Entry<E> getEntry(int index) {
        throw new AssertionError();
      }
    
      @Override
      boolean isPartialView() {
        throw new AssertionError();
      }
    
      @Override
      public int size() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 14:59:07 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  10. samples/guide/src/main/java/okhttp3/recipes/CancelCall.java

    import okhttp3.Response;
    
    public class CancelCall {
      private final ScheduledExecutorService executor = Executors.newScheduledThreadPool(1);
      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay.
            .build();
    
        final long startNanos = System.nanoTime();
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Jan 12 03:31:36 GMT 2019
    - 2.1K bytes
    - Click Count (0)
Back to Top