Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for getModifiers (0.09 sec)

  1. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        Field[] fields = type.getDeclaredFields();
        Arrays.sort(fields, BY_FIELD_NAME);
        for (Field field : fields) {
          if (Modifier.isPublic(field.getModifiers())
              && Modifier.isStatic(field.getModifiers())
              && Modifier.isFinal(field.getModifiers())) {
            if (field.getGenericType() == field.getType() && type.isAssignableFrom(field.getType())) {
              field.setAccessible(true);
              try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java

            Method[] methods = clazz.getMethods();
    
            // Short circuit for the (hopefully) majority of cases where the
            // clazz is public
            if (Modifier.isPublic(clazz.getModifiers())) {
                return methods;
            }
    
            // No luck - the class is not public, so we're going the longer way.
            MethodInfo[] methodInfos = new MethodInfo[methods.length];
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        Field[] fields = type.getDeclaredFields();
        Arrays.sort(fields, BY_FIELD_NAME);
        for (Field field : fields) {
          if (Modifier.isPublic(field.getModifiers())
              && Modifier.isStatic(field.getModifiers())
              && Modifier.isFinal(field.getModifiers())) {
            if (field.getGenericType() == field.getType() && type.isAssignableFrom(field.getType())) {
              field.setAccessible(true);
              try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

                          m.getName().equals("writeReplace")
                              && m.getParameterTypes().length == 0
                              // Only package-private methods are a problem.
                              && (m.getModifiers() & (PUBLIC | PROTECTED | PRIVATE)) == 0)
                  .transform(Method::getDeclaringClass);
          if (!supersWithPackagePrivateWriteReplace.isPresent()) {
            continue;
          }
          assertWithMessage(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 18:53:31 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/HashingTest.java

            ImmutableSet.of("murmur2_64", "fprint96", "highwayFingerprint64", "highwayFingerprint128");
        return method.getReturnType().equals(HashFunction.class) // must return HashFunction
            && Modifier.isPublic(method.getModifiers()) // only the public methods
            && method.getParameterTypes().length == 0 // only the seedless hash functions
            && !legacyHashingMethodNames.contains(method.getName());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 09 17:40:09 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

          // Interfaces can have default methods that aren't abstract.
          // No need to verify them.
          // Can't check isDefault() for Android compatibility.
          if (!Modifier.isAbstract(method.getModifiers())) {
            continue;
          }
          // The interface could be package-private or private.
          // filter out equals/hashCode/toString
          if (method.getName().equals("equals")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

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

       */
      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",
            declaringClass.getName());
        Class<?>[] types = ctor.getParameterTypes();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

          // Interfaces can have default methods that aren't abstract.
          // No need to verify them.
          // Can't check isDefault() for Android compatibility.
          if (!Modifier.isAbstract(method.getModifiers())) {
            continue;
          }
          // The interface could be package-private or private.
          // filter out equals/hashCode/toString
          if (method.getName().equals("equals")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/FauxveridesTest.java

        Set<MethodSignature> publicStaticMethods = newHashSet();
    
        for (Method method : clazz.getDeclaredMethods()) {
          int modifiers = method.getModifiers();
          if (isPublic(modifiers) && isStatic(modifiers)) {
            publicStaticMethods.add(new MethodSignature(method));
          }
        }
    
        return publicStaticMethods;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top