Polishing

This commit is contained in:
Juergen Hoeller
2026-01-09 19:33:52 +01:00
parent 73fa708905
commit 38a397873e
2 changed files with 2 additions and 2 deletions
@@ -220,7 +220,7 @@ class ExtendedBeanInfo implements BeanInfo {
*/
@Override
public PropertyDescriptor[] getPropertyDescriptors() {
return this.propertyDescriptors.toArray(new PropertyDescriptor[0]);
return this.propertyDescriptors.toArray(PropertyDescriptorUtils.EMPTY_PROPERTY_DESCRIPTOR_ARRAY);
}
@Override
@@ -65,7 +65,7 @@ public interface SmartFactoryBean<T> extends FactoryBean<T> {
* @see #supportsType(Class)
*/
@SuppressWarnings("unchecked")
default <S> @Nullable S getObject(Class<S> type) throws Exception{
default <S> @Nullable S getObject(Class<S> type) throws Exception {
Class<?> objectType = getObjectType();
return (objectType != null && type.isAssignableFrom(objectType) ? (S) getObject() : null);
}