Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for SetAnnotations (0.15 sec)

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

                || containsNullable(invokable.getAnnotatedReturnType().getAnnotations());
            // TODO(cpovirk): Should we also check isNullableTypeVariable?
          }
    
          @Override
          boolean isNullable(Parameter param) {
            return FROM_DECLARATION_ANNOTATIONS_ONLY.isNullable(param)
                || containsNullable(param.getAnnotatedType().getAnnotations())
                || isNullableTypeVariable(param.getAnnotatedType().getType());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/reflect/Parameter.java

          if (annotationType.isInstance(annotation)) {
            return annotationType.cast(annotation);
          }
        }
        return null;
      }
    
      @Override
      public Annotation[] getAnnotations() {
        return getDeclaredAnnotations();
      }
    
      /**
       * @since 18.0
       */
      @Override
      public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 16 15:12:31 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

        FROM_DECLARATION_ANNOTATIONS_ONLY {
          @Override
          boolean isNullable(Invokable<?, ?> invokable) {
            return containsNullable(invokable.getAnnotations());
          }
    
          @Override
          boolean isNullable(Parameter param) {
            return containsNullable(param.getAnnotations());
          }
        };
    
        abstract boolean isNullable(Invokable<?, ?> invokable);
    
        abstract boolean isNullable(Parameter param);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/reflect/Invokable.java

      public final <A extends Annotation> A getAnnotation(Class<A> annotationClass) {
        return accessibleObject.getAnnotation(annotationClass);
      }
    
      @Override
      public final Annotation[] getAnnotations() {
        return accessibleObject.getAnnotations();
      }
    
      @Override
      public final Annotation[] getDeclaredAnnotations() {
        return accessibleObject.getDeclaredAnnotations();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        ImmutableList<Parameter> parameters = delegate.getParameters();
        assertEquals(1, parameters.size());
        assertEquals(new TypeToken<Iterable<String>>() {}, parameters.get(0).getType());
        assertThat(parameters.get(0).getAnnotations()).isEmpty();
        new EqualsTester().addEqualityGroup(parameters.get(0)).testEquals();
      }
    
      public void testInstanceMethod_call() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/InvokableTest.java

        ImmutableList<Parameter> parameters = delegate.getParameters();
        assertEquals(1, parameters.size());
        assertEquals(new TypeToken<Iterable<String>>() {}, parameters.get(0).getType());
        assertThat(parameters.get(0).getAnnotations()).isEmpty();
        new EqualsTester().addEqualityGroup(parameters.get(0)).testEquals();
      }
    
      public void testInstanceMethod_call() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top