Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2251 - 2260 of 3,670 for throwIf (0.05 seconds)

  1. src/main/java/org/codelibs/core/io/InputStreamUtil.java

        public static FileInputStream create(final File file) {
            assertArgumentNotNull("file", file);
    
            try {
                return new FileInputStream(file);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * Gets a byte array from an {@link InputStream}.
         * <p>
         * The input stream is not closed.
         * </p>
         *
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 3K bytes
    - Click Count (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ClassDocPropertiesBuilder.java

                if (cells.size() != header.size()) {
                    throw new RuntimeException(String.format("Expected %s <td> elements in <tr>, found: %s", header.size(), tr));
                }
                String propName = cells.get(0).getTextContent().trim();
                PropertyMetaData property = classDoc.getClassMetaData().findProperty(propName);
                if (property == null) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 6.2K bytes
    - Click Count (0)
  3. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/vagrant/VagrantBasePlugin.java

            @Override
            public void apply(Project project) {
                if (project != project.getRootProject()) {
                    throw new IllegalArgumentException("VagrantSetupCheckerPlugin can only be applied to the root project of a build");
                }
    
                project.getGradle().getTaskGraph().whenReady(graph -> {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 6.1K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/cache/CacheBuilderSpec.java

              break;
            default:
              throw new AssertionError();
          }
        }
        if (valueStrength != null) {
          switch (valueStrength) {
            case SOFT:
              builder.softValues();
              break;
            case WEAK:
              builder.weakValues();
              break;
            default:
              throw new AssertionError();
          }
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 18.2K bytes
    - Click Count (0)
  5. guava/src/com/google/common/cache/CacheBuilderSpec.java

              break;
            default:
              throw new AssertionError();
          }
        }
        if (valueStrength != null) {
          switch (valueStrength) {
            case SOFT:
              builder.softValues();
              break;
            case WEAK:
              builder.weakValues();
              break;
            default:
              throw new AssertionError();
          }
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 18.2K bytes
    - Click Count (0)
  6. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/UpgradeContextTest.java

            assertNotNull(context, "Context should be created");
            assertNotNull(context.options(), "Options should be available");
    
            // Test that icon methods don't throw exceptions
            // (The actual icon choice depends on terminal charset capabilities)
            context.success("Test success message");
            context.failure("Test failure message");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Jul 15 09:35:08 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSession.java

                            rr.getPolicy(false).getChecksumPolicy());
    
                } catch (Exception e) {
                    throw new RuntimeException("Unable to create repository", e);
                }
            } else {
                // TODO
                throw new UnsupportedOperationException("Not yet implemented");
            }
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelSource.java

             * </ul>
             *
             * @param project the path to search for a POM file
             * @return the path to the located POM file, or null if no POM can be found
             * @throws NullPointerException if project is null
             */
            @Nullable
            Path locateExistingPom(@Nonnull Path project);
        }
    
        /**
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java

      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testRemoveAll_unsupportedEmptyCollection() {
        try {
          assertFalse(
              "removeAll(emptyCollection) should return false or throw "
                  + "UnsupportedOperationException",
              collection.removeAll(MinimalCollection.of()));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 7.7K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb1/UniAddressTest.java

            assertThrows(UnknownHostException.class, () -> UniAddress.getAllByName("", false),
                    "getAllByName should throw UnknownHostException for empty string");
            assertThrows(UnknownHostException.class, () -> UniAddress.getAllByName(null, false),
                    "getAllByName should throw UnknownHostException for null name");
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
Back to Top