All branches in a conditional structure should not have exactly the same implementation
This commit is contained in:
committed by
Juergen Hoeller
parent
ab96bb5428
commit
93abe0e94b
@@ -347,10 +347,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
|
||||
if (typeDescriptor == null) {
|
||||
// Attempt to populate the cache entry
|
||||
try {
|
||||
if (canRead(context, target, name)) {
|
||||
typeDescriptor = this.typeDescriptorCache.get(cacheKey);
|
||||
}
|
||||
else if (canWrite(context, target, name)) {
|
||||
if (canRead(context, target, name) || canWrite(context, target, name)) {
|
||||
typeDescriptor = this.typeDescriptorCache.get(cacheKey);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user