mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 08:24:13 +00:00
Replace isAssignableFrom() with isInstance() where feasible
Closes gh-36899 Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
@@ -32,7 +32,7 @@ example writes notifications to the console:
|
||||
}
|
||||
|
||||
public boolean isNotificationEnabled(Notification notification) {
|
||||
return AttributeChangeNotification.class.isAssignableFrom(notification.getClass());
|
||||
return (notification instanceof AttributeChangeNotification);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user