Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for getDeclaringClass (0.1 sec)

  1. android/guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

              returnType.isArray());
          assertSame(
              rootLocaleFormat(
                  "%s.%s() must return an array of %s.",
                  annotationClass, propertyName, annotationClass.getDeclaringClass()),
              annotationClass.getDeclaringClass(),
              returnType.getComponentType());
        }
      }
    
      // This is public so that tests for Feature enums we haven't yet imagined
      // can reuse it.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:09:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

              returnType.isArray());
          assertSame(
              rootLocaleFormat(
                  "%s.%s() must return an array of %s.",
                  annotationClass, propertyName, annotationClass.getDeclaringClass()),
              annotationClass.getDeclaringClass(),
              returnType.getComponentType());
        }
      }
    
      // This is public so that tests for Feature enums we haven't yet imagined
      // can reuse it.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:09:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

                              // Only package-private methods are a problem.
                              && (m.getModifiers() & (PUBLIC | PROTECTED | PRIVATE)) == 0)
                  .transform(Method::getDeclaringClass);
          if (!supersWithPackagePrivateWriteReplace.isPresent()) {
            continue;
          }
          assertWithMessage(
                  "To help optimizers, any class that inherits a package-private writeReplace() method"
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 18:53:31 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

       * UnsupportedOperationException} whenever <i>any</i> of its non-nullable parameters are null.
       */
      public void testConstructor(Constructor<?> ctor) {
        Class<?> declaringClass = ctor.getDeclaringClass();
        checkArgument(
            Modifier.isStatic(declaringClass.getModifiers())
                || declaringClass.getEnclosingClass() == null,
            "Cannot test constructor of non-static inner class: %s",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/BuildModelSourceTransformerTest.java

                for (PropertyDescriptor prop : bean.getPropertyDescriptors()) {
                    if (("first".equals(prop.getName()) || "last".equals(prop.getName()))
                            && List.class.equals(prop.getReadMethod().getDeclaringClass())) {
                        continue;
                    }
                    Object p1 = prop.getReadMethod().invoke(m1);
                    Object p2 = prop.getReadMethod().invoke(m2);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

                              // Only package-private methods are a problem.
                              && (m.getModifiers() & (PUBLIC | PROTECTED | PRIVATE)) == 0)
                  .transform(Method::getDeclaringClass);
          if (!supersWithPackagePrivateWriteReplace.isPresent()) {
            continue;
          }
          assertWithMessage(
                  "To help optimizers, any class that inherits a package-private writeReplace() method"
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 18:53:31 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/NullPointerTester.java

       * UnsupportedOperationException} whenever <i>any</i> of its non-nullable parameters are null.
       */
      public void testConstructor(Constructor<?> ctor) {
        Class<?> declaringClass = ctor.getDeclaringClass();
        checkArgument(
            Modifier.isStatic(declaringClass.getModifiers())
                || declaringClass.getEnclosingClass() == null,
            "Cannot test constructor of non-static inner class: %s",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Platform.java

       */
      @J2ktIncompatible
      static MapMaker tryWeakKeys(MapMaker mapMaker) {
        return mapMaker.weakKeys();
      }
    
      static <E extends Enum<E>> Class<E> getDeclaringClassOrObjectForJ2cl(E e) {
        return e.getDeclaringClass();
      }
    
      static int reduceIterationsIfGwt(int iterations) {
        return iterations;
      }
    
      static int reduceExponentIfGwt(int exponent) {
        return exponent;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:52:51 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Platform.java

       */
      @J2ktIncompatible
      static MapMaker tryWeakKeys(MapMaker mapMaker) {
        return mapMaker.weakKeys();
      }
    
      static <E extends Enum<E>> Class<E> getDeclaringClassOrObjectForJ2cl(E e) {
        return e.getDeclaringClass();
      }
    
      static int reduceIterationsIfGwt(int iterations) {
        return iterations;
      }
    
      static int reduceExponentIfGwt(int exponent) {
        return exponent;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:52:51 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

       */
      @JsMethod
      @SuppressWarnings("unusable-by-js")
      private static native <E extends Enum<E>> @Nullable Class<E> getDeclaringClassOrNullForJ2cl(
          E e) /*-{
        return ******@****.***::getDeclaringClass()();
      }-*/;
    
      static int reduceIterationsIfGwt(int iterations) {
        return iterations / 10;
      }
    
      static int reduceExponentIfGwt(int exponent) {
        return exponent / 2;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:52:51 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top