Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 74 for getSimpleName (2.9 seconds)

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

          latch.await();
        }
    
        @Override
        protected void triggerShutdown() {
          latch.countDown();
        }
    
        @Override
        protected String serviceName() {
          return this.getClass().getSimpleName() + "[" + index + "]";
        }
      }
    
      public void testNulls() {
        ServiceManager manager = new ServiceManager(Arrays.asList());
        new NullPointerTester()
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 17:49:12 GMT 2025
    - 25.5K bytes
    - Click Count (0)
  2. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

      private void assertBadUseOfReferentialEquality(Class<?> cls) throws Exception {
        try {
          tester.testEquals(cls);
        } catch (AssertionError expected) {
          assertThat(expected).hasMessageThat().contains(cls.getSimpleName() + "(");
          return;
        }
        fail("should have failed for " + cls);
      }
    
      public void testParameterNotInstantiableForEqualsTest() throws Exception {
        assertThrows(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 36.3K bytes
    - Click Count (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

            }
            if (terminal instanceof AbstractPosixTerminal pt) {
                subs.add("pty=" + pt.getPty().getClass().getName());
            }
            return terminal.getClass().getSimpleName() + " (" + String.join(", ", subs) + ")";
        }
    
        protected void preCommands(C context) throws Exception {
            boolean verbose = context.invokerRequest.effectiveVerbose();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Oct 28 13:01:07 GMT 2025
    - 43.2K bytes
    - Click Count (0)
  4. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

      }
    
      private static boolean containsNullable(Annotation[] annotations) {
        for (Annotation annotation : annotations) {
          if (NULLABLE_ANNOTATION_SIMPLE_NAMES.contains(annotation.annotationType().getSimpleName())) {
            return true;
          }
        }
        return false;
      }
    
      private boolean isIgnored(Member member) {
        return member.isSynthetic()
            || ignoredMembers.contains(member)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  5. guava/src/com/google/common/reflect/TypeResolver.java

      private static <T> T expectArgument(Class<T> type, Object arg) {
        try {
          return type.cast(arg);
        } catch (ClassCastException e) {
          throw new IllegalArgumentException(arg + " is not a " + type.getSimpleName());
        }
      }
    
      /** A TypeTable maintains mapping from {@link TypeVariable} to types. */
      private static class TypeTable {
        private final ImmutableMap<TypeVariableKey, Type> map;
    
        TypeTable() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 22:30:05 GMT 2025
    - 25.3K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/testing/NullPointerTester.java

      }
    
      private static boolean containsNullable(Annotation[] annotations) {
        for (Annotation annotation : annotations) {
          if (NULLABLE_ANNOTATION_SIMPLE_NAMES.contains(annotation.annotationType().getSimpleName())) {
            return true;
          }
        }
        return false;
      }
    
      private boolean isIgnored(Member member) {
        return member.isSynthetic()
            || ignoredMembers.contains(member)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  7. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        }
        // generateInt() is 1-based.
        return Iterables.get(instances, (generateInt() - 1) % instances.size());
      }
    
      private static String paramString(Class<?> type, int i) {
        return type.getSimpleName() + '@' + i;
      }
    
      /**
       * Annotates a method to be the instance generator of a certain type. The return type is the
       * generated type. The method parameters correspond to the generated type's type parameters. For
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 28.7K bytes
    - Click Count (0)
  8. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

       * Returns the name of this service. {@link AbstractScheduledService} may include the name in
       * debugging output.
       *
       * @since 14.0
       */
      protected String serviceName() {
        return getClass().getSimpleName();
      }
    
      @Override
      public String toString() {
        return serviceName() + " [" + state() + "]";
      }
    
      @Override
      public final boolean isRunning() {
        return delegate.isRunning();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 27.8K bytes
    - Click Count (0)
  9. guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

       * used in exception and warning output.
       */
      private static String getLockName(Enum<?> rank) {
        return rank.getDeclaringClass().getSimpleName() + "." + rank.name();
      }
    
      /**
       * A {@code CycleDetectingLockFactory.WithExplicitOrdering} provides the additional enforcement of
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Sep 11 17:06:34 GMT 2025
    - 35.9K bytes
    - Click Count (0)
  10. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        }
        // generateInt() is 1-based.
        return Iterables.get(instances, (generateInt() - 1) % instances.size());
      }
    
      private static String paramString(Class<?> type, int i) {
        return type.getSimpleName() + '@' + i;
      }
    
      /**
       * Annotates a method to be the instance generator of a certain type. The return type is the
       * generated type. The method parameters correspond to the generated type's type parameters. For
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 28.1K bytes
    - Click Count (0)
Back to Top