fix
This commit is contained in:
parent
056c32e11a
commit
c25245dbd8
@ -94,7 +94,7 @@ public class LogContext {
|
|||||||
return ReflectionUtils.getGenericType(targetClass)
|
return ReflectionUtils.getGenericType(targetClass)
|
||||||
.flatMap(clazz -> {
|
.flatMap(clazz -> {
|
||||||
DomainDescriptions description = DomainDescriptions.getByClass(CastUtils.cast(clazz));
|
DomainDescriptions description = DomainDescriptions.getByClass(CastUtils.cast(clazz));
|
||||||
if (null != description) {
|
if (DomainDescriptions.DEFAULT != description) {
|
||||||
return Optional.of(description.getName());
|
return Optional.of(description.getName());
|
||||||
}
|
}
|
||||||
return Optional.ofNullable(AnnotationUtils.findAnnotation(clazz, RestBean.class))
|
return Optional.ofNullable(AnnotationUtils.findAnnotation(clazz, RestBean.class))
|
||||||
|
Loading…
Reference in New Issue
Block a user