Skip to content

Commit

Permalink
Ensure we get a mutable list of additional annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
RedNesto committed Oct 14, 2023
1 parent ec2b1f3 commit b66a279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/platform/AbstractModuleType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ abstract class AbstractModuleType<out T : AbstractModule>(val groupId: String, v
return
}
val manager = EntryPointsManager.getInstance(project)
val annotations = (manager as? EntryPointsManagerBase)?.customAdditionalAnnotations ?: return
val annotations = (manager as? EntryPointsManagerBase)?.customAdditionalAnnotations?.toMutableList() ?: return
ignoredAnnotations.asSequence()
.filter { annotation -> !annotations.contains(annotation) }
.forEach { annotations.add(it) }
Expand Down

0 comments on commit b66a279

Please sign in to comment.