Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2891 - 2900 of 3,670 for throwIf (0.18 seconds)

  1. compat/maven-builder-support/src/main/java/org/apache/maven/building/FileSource.java

            this.path = Objects.requireNonNull(path, "path cannot be null").toAbsolutePath();
            this.hashCode = Objects.hash(path);
        }
    
        @Override
        public InputStream getInputStream() throws IOException {
            return Files.newInputStream(path);
        }
    
        @Override
        public String getLocation() {
            return path.toString();
        }
    
        /**
         * Gets the file of this source.
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jan 15 18:51:29 GMT 2025
    - 3K bytes
    - Click Count (0)
  2. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/type/TypeCollector.java

                Type.MODULAR_JAR, Type.MODULAR_PROCESSOR);
    
        @Override
        public DependencyNode transformGraph(DependencyNode root, DependencyGraphTransformationContext context)
                throws RepositoryException {
            Map<String, String> processorTypes = null;
            for (DependencyNode child : root.getChildren()) {
                if (child.getArtifact() == null) {
                    continue;
                }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Mar 28 11:22:05 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/InternersTest.java

        assertEquals(Strength.WEAK, internerImpl.map.keyStrength());
        assertEquals(concurrencyLevel, internerImpl.map.concurrencyLevel);
      }
    
    
      public void testWeak_afterGC() throws InterruptedException {
        MyInt canonical = new MyInt(5);
        MyInt not = new MyInt(5);
    
        Interner<MyInt> pool = Interners.newWeakInterner();
        assertThat(pool.intern(canonical)).isSameInstanceAs(canonical);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/app/web/sso/SsoAction.java

            try {
                final ActionResponse actionResponse = ssoManager.getResponse(SsoResponseType.METADATA);
                if (actionResponse == null) {
                    throw responseManager.new400("Unsupported request type.");
                }
                return actionResponse;
            } catch (final SsoMessageException e) {
                if (e.getCause() == null) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

                                + " (" + repository.getUrl() + ")");
            }
    
            if (file == null) {
                // TODO throw something instead?
                return true;
            }
    
            Date lastCheckDate;
    
            if (file.exists()) {
                lastCheckDate = new Date(file.lastModified());
            } else {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Dec 16 13:41:14 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  6. src/test/java/jcifs/netbios/NodeStatusRequestTest.java

            mockName.hexCode = 0x20;
            mockName.name = "TEST";
            mockName.scope = "test.scope";
        }
    
        @Test
        void constructor_shouldInitializeFieldsCorrectly() throws Exception {
            // Act
            nodeStatusRequest = new NodeStatusRequest(mockConfig, mockName);
    
            // Assert
            assertSame(mockName, nodeStatusRequest.questionName);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.9K bytes
    - Click Count (0)
  7. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ModelBuilderSupport.java

        }
    
        protected Element getChild(Element element, String childName) {
            Element child = findChild(element, childName);
            if (child != null) {
                return child;
            }
            throw new RuntimeException(String.format("No <%s> element found in <%s>", childName, element.getTagName()));
        }
    
        protected Element findChild(Element element, String childName) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 2.2K bytes
    - Click Count (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

        expectUnchanged();
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testAddAll_unsupportedNothing() {
        try {
          assertFalse(
              "addAll(nothing) should return false or throw", collection.addAll(emptyCollection()));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/math/StatsTesting.java

       * assertions about all the public instance methods of {@link LinearTransformation}, including an
       * assertion that {@link LinearTransformation#transform} and {@link LinearTransformation#slope} on
       * its inverse throws as expected.
       */
      static void assertHorizontalLinearTransformation(LinearTransformation transformation, double y) {
        assertThat(transformation.isHorizontal()).isTrue();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 24K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java

                Class<? extends Scope> ss) {
            injector.bindScope(sa, () -> {
                try {
                    return containerProvider.get().lookup(ss);
                } catch (ComponentLookupException e) {
                    throw new RuntimeException(e);
                }
            });
        }
    
        static class BridgeInjectorImpl extends InjectorImpl {
            final Provider<BeanLocator> locator;
            final Binder binder;
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 16:01:38 GMT 2025
    - 11.4K bytes
    - Click Count (0)
Back to Top