Search Options

Results per page
Sort
Preferred Languages
Advance

Results 391 - 400 of 2,781 for throwIt (0.11 sec)

  1. android/guava/src/com/google/common/collect/Serialization.java

          try {
            field.set(instance, value);
          } catch (IllegalAccessException impossible) {
            throw new AssertionError(impossible);
          }
        }
    
        void set(T instance, int value) {
          try {
            field.set(instance, value);
          } catch (IllegalAccessException impossible) {
            throw new AssertionError(impossible);
          }
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testAsAsyncCallable_exception() throws Exception {
        Exception expected = new IllegalArgumentException();
        Callable<String> callable =
            new Callable<String>() {
              @Override
              public String call() throws Exception {
                throw expected;
              }
            };
    
        AsyncCallable<String> asyncCallable =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/MoreCollectors.java

              throw multiples(true);
            }
            return this;
          }
        }
    
        Optional<Object> getOptional() {
          if (extras.isEmpty()) {
            return Optional.ofNullable(element);
          } else {
            throw multiples(false);
          }
        }
    
        Object getElement() {
          if (element == null) {
            throw new NoSuchElementException();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolver.java

         * @throws DependencyResolverException
         * @throws ArtifactResolverException
         *
         * @see DependencyResolver#collect(DependencyResolverRequest)
         * @see #flatten(Session, Node, PathScope)
         * @see ArtifactResolver#resolve(ArtifactResolverRequest)
         */
        DependencyResolverResult resolve(DependencyResolverRequest request)
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Oct 16 14:15:37 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

        void updateType(final int t) {
            this.type = t;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbResourceLocator#getType()
         */
        @Override
        public int getType() throws CIFSException {
            if (this.type == 0) {
                if (getUNCPath().length() > 1) {
                    this.type = SmbConstants.TYPE_FILESYSTEM;
                } else if (getShare() != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/query/MatchAllQueryCommandTest.java

            // Test execute method with negative boost - should throw exception
            QueryContext context = new QueryContext("*:*", false);
            MatchAllDocsQuery query = new MatchAllDocsQuery();
            float boost = -1.0f;
    
            try {
                matchAllQueryCommand.execute(context, query, boost);
                fail("Should throw IllegalArgumentException for negative boost");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/ParseResponseWithMoshi.java

      private final JsonAdapter<Gist> gistJsonAdapter = moshi.adapter(Gist.class);
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://api.github.com/gists/c2a7c39532239ff261be")
            .build();
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.8K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/curl/CurlResponseTest.java

                assertSame(exception, e.getCause());
            } catch (IOException e) {
                fail("Should throw CurlException, not IOException");
            }
        }
    
        @Test
        public void testGetContentWithParser() throws IOException {
            CurlResponse response = new CurlResponse();
            response.setEncoding("UTF-8");
            String testContent = "42";
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/net/InetAddresses.java

       *
       * @param addr the raw IP address in little-endian byte order
       * @return an InetAddress object created from the raw IP address
       * @throws UnknownHostException if IP address is of illegal length
       */
      public static InetAddress fromLittleEndianByteArray(byte[] addr) throws UnknownHostException {
        byte[] reversed = new byte[addr.length];
        for (int i = 0; i < addr.length; i++) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Iterators.java

          sb.append(iterator.next());
        }
        return sb.append(']').toString();
      }
    
      /**
       * Returns the single element contained in {@code iterator}.
       *
       * @throws NoSuchElementException if the iterator is empty
       * @throws IllegalArgumentException if the iterator contains multiple elements. The state of the
       *     iterator is unspecified.
       */
      @ParametricNullness
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 50.5K bytes
    - Viewed (0)
Back to top