Remove redundant uses of @NestedConfigurationProperty
Closes gh-9216
This commit is contained in:
parent
fa126c5c82
commit
f15cf4b991
|
|
@ -22,7 +22,6 @@ import java.util.List;
|
|||
import org.springframework.amqp.core.AcknowledgeMode;
|
||||
import org.springframework.amqp.rabbit.connection.CachingConnectionFactory.CacheMode;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.NestedConfigurationProperty;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
|
|
@ -486,10 +485,8 @@ public class RabbitProperties {
|
|||
*/
|
||||
private ContainerType type = ContainerType.SIMPLE;
|
||||
|
||||
@NestedConfigurationProperty
|
||||
private final SimpleContainer simple = new SimpleContainer();
|
||||
|
||||
@NestedConfigurationProperty
|
||||
private final DirectContainer direct = new DirectContainer();
|
||||
|
||||
public ContainerType getType() {
|
||||
|
|
@ -541,7 +538,6 @@ public class RabbitProperties {
|
|||
/**
|
||||
* Optional properties for a retry interceptor.
|
||||
*/
|
||||
@NestedConfigurationProperty
|
||||
private final ListenerRetry retry = new ListenerRetry();
|
||||
|
||||
public boolean isAutoStartup() {
|
||||
|
|
@ -659,7 +655,6 @@ public class RabbitProperties {
|
|||
|
||||
public static class Template {
|
||||
|
||||
@NestedConfigurationProperty
|
||||
private final Retry retry = new Retry();
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ package org.springframework.boot.autoconfigure.couchbase;
|
|||
import java.util.List;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.NestedConfigurationProperty;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
/**
|
||||
|
|
@ -89,13 +88,10 @@ public class CouchbaseProperties {
|
|||
|
||||
public static class Env {
|
||||
|
||||
@NestedConfigurationProperty
|
||||
private final Endpoints endpoints = new Endpoints();
|
||||
|
||||
@NestedConfigurationProperty
|
||||
private final Ssl ssl = new Ssl();
|
||||
|
||||
@NestedConfigurationProperty
|
||||
private final Timeouts timeouts = new Timeouts();
|
||||
|
||||
public Endpoints getEndpoints() {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ import javax.sql.DataSource;
|
|||
|
||||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDatabaseConnection;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.NestedConfigurationProperty;
|
||||
import org.springframework.orm.jpa.vendor.Database;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
|
|
@ -159,7 +158,6 @@ public class JpaProperties {
|
|||
*/
|
||||
private Boolean useNewIdGeneratorMappings;
|
||||
|
||||
@NestedConfigurationProperty
|
||||
private final Naming naming = new Naming();
|
||||
|
||||
public String getDdlAuto() {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ import java.util.Collections;
|
|||
import java.util.List;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.NestedConfigurationProperty;
|
||||
import org.springframework.context.ResourceLoaderAware;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
import org.springframework.core.io.Resource;
|
||||
|
|
@ -175,7 +174,6 @@ public class ResourceProperties implements ResourceLoaderAware {
|
|||
*/
|
||||
private boolean gzipped = false;
|
||||
|
||||
@NestedConfigurationProperty
|
||||
private final Strategy strategy = new Strategy();
|
||||
|
||||
/**
|
||||
|
|
@ -233,10 +231,8 @@ public class ResourceProperties implements ResourceLoaderAware {
|
|||
*/
|
||||
public static class Strategy {
|
||||
|
||||
@NestedConfigurationProperty
|
||||
private final Fixed fixed = new Fixed();
|
||||
|
||||
@NestedConfigurationProperty
|
||||
private final Content content = new Content();
|
||||
|
||||
public Fixed getFixed() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue