fix gitee #I1NLDI
This commit is contained in:
parent
89aafab868
commit
1dd7c4edfa
|
@ -266,6 +266,11 @@ public class JavaClassUtil {
|
|||
List<String> validates = DocValidatorAnnotationEnum.listValidatorAnnotations();
|
||||
List<AnnotationValue> annotationValueList = getAnnotationValues(validates, javaAnnotation);
|
||||
addGroupClass(annotationValueList, javaClassList);
|
||||
String simpleAnnotationName = javaAnnotation.getType().getValue();
|
||||
// add default group
|
||||
if (javaClassList.size() == 0 && JavaClassValidateUtil.isJSR303Required(simpleAnnotationName)) {
|
||||
javaClassList.add("javax.validation.groups.Default");
|
||||
}
|
||||
return javaClassList;
|
||||
}
|
||||
|
||||
|
@ -305,6 +310,7 @@ public class JavaClassUtil {
|
|||
|
||||
/**
|
||||
* Get Map of final field and value
|
||||
*
|
||||
* @param clazz Java class
|
||||
* @return Map
|
||||
* @throws IllegalAccessException IllegalAccessException
|
||||
|
|
Loading…
Reference in New Issue