Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 581 - 590 of 3,282 for throwIt (0.05 seconds)

  1. guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

                      throws Throwable {
                    throw exception;
                  }
                });
        T wrapper = wrapperFunction.apply(proxy);
        try {
          method.invoke(wrapper, getParameterValues(method));
          fail(method + " failed to throw exception as is.");
        } catch (InvocationTargetException e) {
          if (exception != e.getCause()) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/core/misc/DisposableUtilTest.java

        private int count;
    
        private String names = "";
    
        /**
         * @throws Exception
         */
        @Before
        public void setUp() throws Exception {
            DisposableUtil.dispose();
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void test1() throws Exception {
            DisposableUtil.add(new TestDisposable("a"));
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/io/MultiInputStreamTest.java

            new ByteSource() {
              @Override
              public InputStream openStream() throws IOException {
                if (counter[0]++ != 0) {
                  throw new IllegalStateException("More than one source open");
                }
                return new FilterInputStream(source.openStream()) {
                  @Override
                  public void close() throws IOException {
                    super.close();
                    counter[0]--;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  4. guava/src/com/google/common/io/CharStreams.java

       * @param n the number of characters to skip
       * @throws EOFException if this stream reaches the end before skipping all the characters
       * @throws IOException if an I/O error occurs
       */
      public static void skipFully(Reader reader, long n) throws IOException {
        checkNotNull(reader);
        while (n > 0) {
          long amt = reader.skip(n);
          if (amt == 0) {
            throw new EOFException();
          }
          n -= amt;
        }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 29 13:56:24 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt

       * possibility for your response.
       */
      @Throws(IOException::class)
      fun byteString() = consumeSource(BufferedSource::readByteString) { it.size }
    
      private inline fun <T : Any> ResponseBody.consumeSource(
        consumer: (BufferedSource) -> T,
        sizeMapper: (T) -> Int,
      ): T {
        val contentLength = contentLength()
        if (contentLength > Int.MAX_VALUE) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue May 27 14:51:25 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

                // Then
                assertNotNull(cancel);
                assertEquals(mid, cancel.getMid());
            }
    
            @Test
            @DisplayName("Should throw NullPointerException when config is null")
            void testNullConfigurationThrowsException() throws Exception {
                // Given
                Constructor<SmbComNtCancel> constructor = SmbComNtCancel.class.getDeclaredConstructor(Configuration.class, int.class);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/DefaultProjectDependenciesResolver.java

            this.resolutionErrorHandler = resolutionErrorHandler;
        }
    
        @Override
        public Set<Artifact> resolve(MavenProject project, Collection<String> scopesToResolve, MavenSession session)
                throws ArtifactResolutionException, ArtifactNotFoundException {
            return resolve(Collections.singleton(project), scopesToResolve, session);
        }
    
        @Override
        public Set<Artifact> resolve(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 8.4K bytes
    - Click Count (1)
  8. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java

            this.repositorySystem = repositorySystem;
        }
    
        @Override
        public MavenExecutionRequest populateFromToolchains(MavenExecutionRequest request, PersistedToolchains toolchains)
                throws MavenExecutionRequestPopulationException {
            if (toolchains != null) {
                Map<String, List<ToolchainModel>> groupedToolchains = new HashMap<>(2);
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 8.4K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/extensions/BootstrapCoreExtensionManager.java

        }
    
        public List<LoadedCoreExtension> loadCoreExtensions(
                MavenExecutionRequest request, Set<String> providedArtifacts, List<CoreExtension> extensions)
                throws Exception {
            try (CloseableSession repoSession = repositorySystemSessionFactory
                    .newRepositorySessionBuilder(request)
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 16 13:41:14 GMT 2025
    - 13.9K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb2/persistent/HandleReconnector.java

         * SMB reconnection implementation.
         *
         * @param info the handle information
         * @return true if reconnection was successful
         * @throws Exception if reconnection fails
         */
        protected boolean performReconnection(HandleInfo info) throws Exception {
            // This is a template method that should be implemented by the actual
            // SMB file implementation. For now, we'll provide a basic structure.
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 8.5K bytes
    - Click Count (1)
Back to Top