fixed nullability for various listeners update in 183

This commit is contained in:
Nicolay Mitropolsky
2018-08-31 17:00:02 +03:00
committed by xiexed
parent d9473c0b6e
commit d415ca9cf6
21 changed files with 39 additions and 33 deletions
@@ -41,7 +41,7 @@ class KotlinSetupEnvironmentNotificationProvider(
init {
myProject.messageBus.connect(myProject).subscribe(ProjectTopics.PROJECT_ROOTS, object : ModuleRootListener {
override fun rootsChanged(event: ModuleRootEvent?) {
override fun rootsChanged(event: ModuleRootEvent) {
notifications.updateAllNotifications()
}
})
@@ -49,7 +49,7 @@ class KotlinConfigurationCheckerComponent(project: Project) : AbstractProjectCom
val connection = project.messageBus.connect()
connection.subscribe(ProjectTopics.PROJECT_ROOTS, object : ModuleRootListener {
override fun rootsChanged(event: ModuleRootEvent?) {
override fun rootsChanged(event: ModuleRootEvent) {
if (!project.isInitialized) return
if (notificationPostponed && !isSyncing) {
@@ -53,7 +53,7 @@ class UnsupportedAbiVersionNotificationPanelProvider(private val project: Projec
init {
val connection = project.messageBus.connect()
connection.subscribe(ProjectTopics.PROJECT_ROOTS, object : ModuleRootListener {
override fun rootsChanged(event: ModuleRootEvent?) {
override fun rootsChanged(event: ModuleRootEvent) {
updateNotifications()
}
})