Skip to content

Commit

Permalink
Remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nosix committed Nov 3, 2020
1 parent 0e74677 commit 2eb4a43
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.core.io.ClassPathResource
import org.springframework.data.r2dbc.config.AbstractR2dbcConfiguration
import org.springframework.data.r2dbc.connectionfactory.init.ConnectionFactoryInitializer
import org.springframework.data.r2dbc.connectionfactory.init.ResourceDatabasePopulator
import org.springframework.r2dbc.connection.init.ConnectionFactoryInitializer
import org.springframework.r2dbc.connection.init.ResourceDatabasePopulator

@Configuration
class DataSourceConfig : AbstractR2dbcConfiguration() {
Expand All @@ -26,8 +26,8 @@ class DataSourceConfig : AbstractR2dbcConfiguration() {

@Bean
fun initializer(
@Qualifier("connectionFactory") connectionFactory: ConnectionFactory): ConnectionFactoryInitializer {
// FIXME remove warning
@Qualifier("connectionFactory") connectionFactory: ConnectionFactory
): ConnectionFactoryInitializer {
return ConnectionFactoryInitializer().apply {
setConnectionFactory(connectionFactory)
setDatabasePopulator(ResourceDatabasePopulator(ClassPathResource("schema.sql")))
Expand Down

0 comments on commit 2eb4a43

Please sign in to comment.