mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Add nullability annotations to module/spring-boot-amqp
See gh-46587
This commit is contained in:
+3
-2
@@ -17,6 +17,7 @@
|
||||
package org.springframework.boot.docs.messaging.amqp.receiving.custom
|
||||
|
||||
import org.springframework.amqp.rabbit.config.SimpleRabbitListenerContainerFactory
|
||||
import org.springframework.amqp.rabbit.connection.CachingConnectionFactory
|
||||
import org.springframework.amqp.rabbit.connection.ConnectionFactory
|
||||
import org.springframework.boot.amqp.autoconfigure.SimpleRabbitListenerContainerFactoryConfigurer
|
||||
import org.springframework.context.annotation.Bean
|
||||
@@ -34,8 +35,8 @@ class MyRabbitConfiguration {
|
||||
return factory
|
||||
}
|
||||
|
||||
fun getCustomConnectionFactory() : ConnectionFactory? {
|
||||
return /**/ null
|
||||
fun getCustomConnectionFactory() : ConnectionFactory {
|
||||
return /**/ CachingConnectionFactory()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user