Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 2,652 for throwIf (0.06 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/features/MapFeature.java

    @GwtCompatible
    public enum MapFeature implements Feature<Map> {
      /**
       * The map does not throw {@code NullPointerException} on calls such as {@code containsKey(null)},
       * {@code get(null)}, {@code keySet().contains(null)} or {@code remove(null)}.
       */
      ALLOWS_NULL_KEY_QUERIES,
      ALLOWS_NULL_KEYS(ALLOWS_NULL_KEY_QUERIES),
      /**
       * The map does not throw {@code NullPointerException} on calls such as {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java

        return new Callable<T>() {
          @Override
          public T call() throws Exception {
            throw exception;
          }
        };
      }
    
      private static Runnable runnableThrowing(final RuntimeException e) {
        return new Runnable() {
          @Override
          public void run() {
            throw e;
          }
        };
      }
    
      @SuppressWarnings("serial")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

                throws RepositoryMetadataResolutionException {
            RepositoryRequest request = new DefaultRepositoryRequest();
            request.setLocalRepository(localRepository);
            request.setRemoteRepositories(remoteRepositories);
            resolve(metadata, request);
        }
    
        public void resolve(RepositoryMetadata metadata, RepositoryRequest request)
                throws RepositoryMetadataResolutionException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/io/FaultyFileSystem.kt

        } else {
          renameFaults.remove(file)
        }
      }
    
      @Throws(IOException::class)
      override fun atomicMove(
        source: Path,
        target: Path,
      ) {
        if (renameFaults.contains(source) || renameFaults.contains(target)) throw IOException("boom!")
        super.atomicMove(source, target)
      }
    
      @Throws(IOException::class)
      override fun delete(
        path: Path,
        mustExist: Boolean,
      ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/repository/DefaultArtifactRepositoryFactory.java

        public ArtifactRepositoryLayout getLayout(String layoutId) throws UnknownRepositoryLayoutException {
            return repositoryLayouts.get(layoutId);
        }
    
        public ArtifactRepository createDeploymentArtifactRepository(
                String id, String url, String layoutId, boolean uniqueVersion) throws UnknownRepositoryLayoutException {
            ArtifactRepositoryLayout layout = repositoryLayouts.get(layoutId);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CollectPreconditions.java

        if (key == null) {
          throw new NullPointerException("null key in entry: null=" + value);
        } else if (value == null) {
          throw new NullPointerException("null value in entry: " + key + "=null");
        }
      }
    
      @CanIgnoreReturnValue
      static int checkNonnegative(int value, String name) {
        if (value < 0) {
          throw new IllegalArgumentException(name + " cannot be negative but was: " + value);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 30 10:33:07 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

      }
    
      public void testSuccessful() throws Exception {
        assertThat(future.set(1)).isTrue();
        assertSuccessful(future, 1);
      }
    
      public void testFailed() throws Exception {
        Exception cause = new Exception();
        assertThat(future.setException(cause)).isTrue();
        assertFailed(future, cause);
      }
    
      public void testCanceled() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

        }
    
        @Override
        public ModelBuildingResult build(ModelBuildingRequest request) throws ModelBuildingException {
            return build(request, new LinkedHashSet<>());
        }
    
        protected ModelBuildingResult build(ModelBuildingRequest request, Collection<String> importIds)
                throws ModelBuildingException {
            // phase 1
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 83.6K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/AccessHeaders.java

          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println("Server: " + response.header("Server"));
          System.out.println("Date: " + response.header("Date"));
          System.out.println("Vary: " + response.headers("Vary"));
        }
      }
    
      public static void main(String... args) throws Exception {
        new AccessHeaders().run();
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/FileOperationsTest.java

                    }
                    throw e;
                }
                finally {
                    if ( !renamed && f.exists() ) {
                        f.delete();
                    }
                }
            }
        }
    
    
        @Test
        public void testRenameDifferentTrees () throws CIFSException, MalformedURLException, UnknownHostException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:17:59 UTC 2023
    - 16.3K bytes
    - Viewed (0)
Back to top