@Nullable private Class<?> declaringClass() { if (getReadMethod() != null) { return getReadMethod().getDeclaringClass(); } else if (getWriteMethod() != null) { return getWriteMethod().getDeclaringClass(); } else { return null; } }
@Nullable private MethodParameter resolveWriteMethodParameter() { if (getWriteMethod() == null) { return null; } return resolveParameterType(new MethodParameter(getWriteMethod(), 0)); }
@Nullable private MethodParameter resolveWriteMethodParameter() { if (getWriteMethod() == null) { return null; } return resolveParameterType(new MethodParameter(getWriteMethod(), 0)); }
@Nullable private Class<?> declaringClass() { if (getReadMethod() != null) { return getReadMethod().getDeclaringClass(); } else if (getWriteMethod() != null) { return getWriteMethod().getDeclaringClass(); } else { return null; } }
private Annotation[] resolveAnnotations() { Annotation[] annotations = annotationCache.get(this); if (annotations == null) { Map<Class<? extends Annotation>, Annotation> annotationMap = new LinkedHashMap<>(); addAnnotationsToMap(annotationMap, getReadMethod()); addAnnotationsToMap(annotationMap, getWriteMethod()); addAnnotationsToMap(annotationMap, getField()); annotations = annotationMap.values().toArray(new Annotation[0]); annotationCache.put(this, annotations); } return annotations; }
private Annotation[] resolveAnnotations() { Annotation[] annotations = annotationCache.get(this); if (annotations == null) { Map<Class<? extends Annotation>, Annotation> annotationMap = new LinkedHashMap<>(); addAnnotationsToMap(annotationMap, getReadMethod()); addAnnotationsToMap(annotationMap, getWriteMethod()); addAnnotationsToMap(annotationMap, getField()); annotations = annotationMap.values().toArray(new Annotation[0]); annotationCache.put(this, annotations); } return annotations; }
private MethodParameter resolveWriteMethodParameter() { if (getWriteMethod() == null) { return null; } return resolveParameterType(new MethodParameter(getWriteMethod(), 0)); }
private Class<?> declaringClass() { if (getReadMethod() != null) { return getReadMethod().getDeclaringClass(); } else { return getWriteMethod().getDeclaringClass(); } }
private Annotation[] resolveAnnotations() { Map<Class<?>, Annotation> annMap = new LinkedHashMap<Class<?>, Annotation>(); Method readMethod = getReadMethod(); if (readMethod != null) { for (Annotation ann : readMethod.getAnnotations()) { annMap.put(ann.annotationType(), ann); } } Method writeMethod = getWriteMethod(); if (writeMethod != null) { for (Annotation ann : writeMethod.getAnnotations()) { annMap.put(ann.annotationType(), ann); } } Field field = getField(); if (field != null) { for (Annotation ann : field.getAnnotations()) { annMap.put(ann.annotationType(), ann); } } return annMap.values().toArray(new Annotation[annMap.size()]); }
@Nullable private MethodParameter resolveWriteMethodParameter() { if (getWriteMethod() == null) { return null; } return resolveParameterType(new MethodParameter(getWriteMethod(), 0)); }
@Nullable private Class<?> declaringClass() { if (getReadMethod() != null) { return getReadMethod().getDeclaringClass(); } else if (getWriteMethod() != null) { return getWriteMethod().getDeclaringClass(); } else { return null; } }
@Nullable private MethodParameter resolveWriteMethodParameter() { if (getWriteMethod() == null) { return null; } return resolveParameterType(new MethodParameter(getWriteMethod(), 0)); }
private Annotation[] resolveAnnotations() { Annotation[] annotations = annotationCache.get(this); if (annotations == null) { Map<Class<? extends Annotation>, Annotation> annotationMap = new LinkedHashMap<>(); addAnnotationsToMap(annotationMap, getReadMethod()); addAnnotationsToMap(annotationMap, getWriteMethod()); addAnnotationsToMap(annotationMap, getField()); annotations = annotationMap.values().toArray(new Annotation[0]); annotationCache.put(this, annotations); } return annotations; }