Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for New (0.4 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

      final TestCloseable closeable1 = new TestCloseable("closeable1");
      final TestCloseable closeable2 = new TestCloseable("closeable2");
      final TestCloseable closeable3 = new TestCloseable("closeable3");
      final TestCloseable closeable4 = new TestCloseable("closeable4");
    
      final Waiter waiter = new Waiter();
      final CountDownLatch futureCancelled = new CountDownLatch(1);
      final Exception exception = new Exception();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 12:37:15 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Preconditions.java

          @CheckForNull Object p4) {
        if (reference == null) {
          throw new NullPointerException(lenientFormat(errorMessageTemplate, p1, p2, p3, p4));
        }
        return reference;
      }
    
      /*
       * All recent hotspots (as of 2009) *really* like to have the natural code
       *
       * if (guardExpression) {
       *    throw new BadException(messageExpression);
       * }
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 11 11:52:14 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

            if (interpolatedModel.getParent() != null) {
                StringSearchInterpolator ssi = new StringSearchInterpolator();
                ssi.addValueSource(new MapBasedValueSource(request.getSession().getUserProperties()));
                ssi.addValueSource(new MapBasedValueSource(model.getProperties()));
                ssi.addValueSource(new MapBasedValueSource(request.getSession().getSystemProperties()));
                try {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Jun 07 07:31:02 UTC 2024
    - 61.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Sets.java

       * @return a new, empty hash set with enough capacity to hold {@code expectedSize} elements
       *     without resizing
       * @throws IllegalArgumentException if {@code expectedSize} is negative
       */
      public static <E extends @Nullable Object> HashSet<E> newHashSetWithExpectedSize(
          int expectedSize) {
        return new HashSet<>(Maps.capacity(expectedSize));
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

          if (!wasCancelled) {
            return new Failure(
                new IllegalArgumentException(
                    "get() threw CancellationException, despite reporting isCancelled() == false: "
                        + future,
                    cancellation));
          }
          return new Cancellation(false, cancellation);
        } catch (Exception | Error t) { // sneaky checked exception
          return new Failure(t);
        }
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 63.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/AbstractFuture.java

          if (!wasCancelled) {
            return new Failure(
                new IllegalArgumentException(
                    "get() threw CancellationException, despite reporting isCancelled() == false: "
                        + future,
                    cancellation));
          }
          return new Cancellation(false, cancellation);
        } catch (Exception | Error t) { // sneaky checked exception
          return new Failure(t);
        }
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 62.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/MapMakerInternalMap.java

        private DummyInternalEntry() {
          throw new AssertionError();
        }
    
        @Override
        public DummyInternalEntry getNext() {
          throw new AssertionError();
        }
    
        @Override
        public int getHash() {
          throw new AssertionError();
        }
    
        @Override
        public Object getKey() {
          throw new AssertionError();
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  8. maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

            final ModelBuildingRequest request = new DefaultModelBuildingRequest()
                    .setValidationLevel(validationLevel)
                    .setLocationTracking(locationTracking)
                    .setModelSource(new FileModelSource(pomFile));
            DefaultModelProblemCollector problems = new DefaultModelProblemCollector(new DefaultModelBuildingResult());
            try {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue May 21 09:54:32 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AbstractClassGenerator.java

            NamePropertyHandler namePropertyHandler = new NamePropertyHandler();
            ExtensibleTypePropertyHandler extensibleTypeHandler = new ExtensibleTypePropertyHandler();
            DslMixInPropertyType dslMixInHandler = new DslMixInPropertyType(extensibleTypeHandler);
    
            // Order is significant. Injection handler should be at the end
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:37 UTC 2024
    - 63K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/SetsTest.java

        assertTrue(set.isEmpty());
        set.add(new Derived("foo"));
        set.add(new Derived("bar"));
        assertThat(set).containsExactly(new Derived("bar"), new Derived("foo")).inOrder();
      }
    
      public void testNewTreeSetEmptyNonGeneric() {
        TreeSet<LegacyComparable> set = Sets.newTreeSet();
        assertTrue(set.isEmpty());
        set.add(new LegacyComparable("foo"));
        set.add(new LegacyComparable("bar"));
        assertThat(set)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
Back to top