We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have found org.springframework.data.mapping.callback.DefaultEntityCallbacks#callback method exists redunant code.
org.springframework.data.mapping.callback.DefaultEntityCallbacks#callback
entity is checked not null, then don't need to call callbackDiscoverer.resolveDeclaredEntityType(callbackType).getRawClass()).
entity
not null
callbackDiscoverer.resolveDeclaredEntityType(callbackType).getRawClass())
current code:
@Override public <T> T callback(Class<? extends EntityCallback> callbackType, T entity, Object... args) { // check entity not null Assert.notNull(entity, "Entity must not be null"); // redundant code Class<T> entityType = (Class<T>) (entity != null ? ClassUtils.getUserClass(entity.getClass()) : callbackDiscoverer.resolveDeclaredEntityType(callbackType).getRawClass()); ...... }
The text was updated successfully, but these errors were encountered:
DefaultEntityCallbacks#callback
939c614
Polishing.
e32b266
Handle warnings. Remove redundant code in DefaultReactiveEntityCallbacks. Original pull request: #3053 See #3055
Remove redundant code in DefaultEntityCallbacks#callback.
dec7f74
Original pull request: #3053 Closes #3055
a32fe16
8befca4
5ac8b7a
mp911de
Successfully merging a pull request may close this issue.
I have found
org.springframework.data.mapping.callback.DefaultEntityCallbacks#callback
method exists redunant code.entity
is checkednot null
, then don't need to callcallbackDiscoverer.resolveDeclaredEntityType(callbackType).getRawClass())
.current code:
The text was updated successfully, but these errors were encountered: