diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQProperties.java index 2a6b696de5..a951fe2708 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQProperties.java @@ -70,9 +70,9 @@ public class ActiveMQProperties { */ private Duration sendTimeout = Duration.ofMillis(0); - private Pool pool = new Pool(); + private final Pool pool = new Pool(); - private Packages packages = new Packages(); + private final Packages packages = new Packages(); public String getBrokerUrl() { return this.brokerUrl; @@ -134,10 +134,6 @@ public class ActiveMQProperties { return this.pool; } - public void setPool(Pool pool) { - this.pool = pool; - } - public Packages getPackages() { return this.packages; }