Skip to content

Commit

Permalink
fix : spotless format issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Nov 16, 2023
1 parent a90a1c7 commit 41f76d1
Show file tree
Hide file tree
Showing 11 changed files with 68 additions and 115 deletions.
98 changes: 49 additions & 49 deletions boot-rabbitmq-thymeleaf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,54 +30,54 @@
<jacoco.itReportFile>${jacoco.itReportFolder}/integrationTest.exec</jacoco.itReportFile>
<junit.utReportFolder>${project.testresult.directory}/test</junit.utReportFolder>
<junit.itReportFolder>${project.testresult.directory}/integrationTest</junit.itReportFolder>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
</dependency>

<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>

<dependency>
<groupId>org.webjars</groupId>
<artifactId>webjars-locator-core</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<scope>provided</scope>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
</dependency>

<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>

<dependency>
<groupId>org.webjars</groupId>
<artifactId>webjars-locator-core</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
Expand Down Expand Up @@ -262,7 +262,7 @@
<configuration>
<java>
<googleJavaFormat>
<version>1.17.0</version>
<version>1.18.1</version>
<style>AOSP</style>
</googleJavaFormat>
</java>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ RedisCacheConfiguration defaultCacheConfig() {
}

@Bean
LettuceConnectionFactory redisConnectionFactory(
CacheConfigurationProperties properties) {
LettuceConnectionFactory redisConnectionFactory(CacheConfigurationProperties properties) {
log.info(
"Redis (/Lettuce) configuration enabled. With cache timeout "
+ properties.getTimeoutSeconds()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ HttpServiceProxyFactory httpServiceProxyFactory(
}

@Bean
JsonPlaceholderService jsonPlaceholderService(
HttpServiceProxyFactory httpServiceProxyFactory) {
JsonPlaceholderService jsonPlaceholderService(HttpServiceProxyFactory httpServiceProxyFactory) {
return httpServiceProxyFactory.createClient(JsonPlaceholderService.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ DataSource replicaDataSource(final DataSourceProperties replicaDataSourcePropert

@Bean
@Primary
DataSource dataSource(
final DataSource primaryDataSource, final DataSource replicaDataSource) {
DataSource dataSource(final DataSource primaryDataSource, final DataSource replicaDataSource) {
final RoutingDataSource routingDataSource = new RoutingDataSource();

final Map<Object, Object> targetDataSources = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ LocalContainerEntityManagerFactoryBean primaryEntityManagerFactory(
EntityManagerFactoryBuilder builder,
@Qualifier("tenantRoutingDatasource") DataSource tenantRoutingDatasource,
@Qualifier("multiTenantConnectionProviderImpl")
MultiTenantConnectionProvider multiTenantConnectionProvider,
MultiTenantConnectionProvider multiTenantConnectionProvider,
@Qualifier("tenantIdentifierResolver")
CurrentTenantIdentifierResolver currentTenantIdentifierResolver) {
CurrentTenantIdentifierResolver currentTenantIdentifierResolver) {
Map<String, Object> hibernateProps = new HashMap<>();
hibernateProps.put(
AvailableSettings.MULTI_TENANT_CONNECTION_PROVIDER, multiTenantConnectionProvider);
Expand All @@ -59,8 +59,8 @@ LocalContainerEntityManagerFactoryBean primaryEntityManagerFactory(

@Bean
PlatformTransactionManager primaryTransactionManager(
final @Qualifier("primaryEntityManagerFactory") LocalContainerEntityManagerFactoryBean
primaryEntityManagerFactory) {
final @Qualifier("primaryEntityManagerFactory") LocalContainerEntityManagerFactoryBean
primaryEntityManagerFactory) {
return new JpaTransactionManager(
Objects.requireNonNull(primaryEntityManagerFactory.getObject()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ LocalContainerEntityManagerFactoryBean secondaryEntityManagerFactory(
EntityManagerFactoryBuilder builder,
@Qualifier("tenantRoutingDatasource") DataSource tenantRoutingDatasource,
@Qualifier("multiTenantConnectionProviderImpl")
MultiTenantConnectionProvider multiTenantConnectionProvider,
MultiTenantConnectionProvider multiTenantConnectionProvider,
@Qualifier("tenantIdentifierResolver")
CurrentTenantIdentifierResolver currentTenantIdentifierResolver) {
CurrentTenantIdentifierResolver currentTenantIdentifierResolver) {
Map<String, Object> hibernateProps = new HashMap<>();
hibernateProps.put(
AvailableSettings.MULTI_TENANT_CONNECTION_PROVIDER, multiTenantConnectionProvider);
Expand All @@ -59,8 +59,8 @@ LocalContainerEntityManagerFactoryBean secondaryEntityManagerFactory(

@Bean
PlatformTransactionManager secondaryTransactionManager(
final @Qualifier("secondaryEntityManagerFactory") LocalContainerEntityManagerFactoryBean
secondaryEntityManagerFactory) {
final @Qualifier("secondaryEntityManagerFactory") LocalContainerEntityManagerFactoryBean
secondaryEntityManagerFactory) {
return new JpaTransactionManager(
Objects.requireNonNull(secondaryEntityManagerFactory.getObject()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ LiquibaseProperties primaryLiquibaseProperties() {
SpringLiquibase primaryLiquibase(
@Qualifier("primaryDataSource") DataSource primaryDataSource,
@Qualifier("primaryLiquibaseProperties")
LiquibaseProperties primaryLiquibaseProperties) {
LiquibaseProperties primaryLiquibaseProperties) {
return springLiquibase(primaryDataSource, primaryLiquibaseProperties);
}

Expand All @@ -55,7 +55,7 @@ DataSourceProperties secondaryDataSourceProperties() {
@ConfigurationProperties("datasource.secondary.hikari")
DataSource secondaryDataSource(
@Qualifier("secondaryDataSourceProperties")
DataSourceProperties secondaryDataSourceProperties) {
DataSourceProperties secondaryDataSourceProperties) {
return secondaryDataSourceProperties.initializeDataSourceBuilder().build();
}

Expand All @@ -69,7 +69,7 @@ LiquibaseProperties secondaryLiquibaseProperties() {
SpringLiquibase secondaryLiquibase(
@Qualifier("secondaryDataSource") DataSource secondaryDataSource,
@Qualifier("secondaryLiquibaseProperties")
LiquibaseProperties secondaryLiquibaseProperties) {
LiquibaseProperties secondaryLiquibaseProperties) {
return springLiquibase(secondaryDataSource, secondaryLiquibaseProperties);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,4 @@ public class TenantRoutingDatasource extends AbstractRoutingDataSource {
protected String determineCurrentLookupKey() {
return tenantIdentifierResolver.resolveCurrentTenantIdentifier();
}

public boolean isWrapperFor(Class<?> iface) throws java.sql.SQLException {
// TODO Auto-generated method stub
return iface != null && iface.isAssignableFrom(this.getClass());
}

public <T> T unwrap(Class<T> iface) throws java.sql.SQLException {
// TODO Auto-generated method stub
try {
if (iface != null && iface.isAssignableFrom(this.getClass())) {
return (T) this;
}
throw new java.sql.SQLException("Auto-generated unwrap failed; Revisit implementation");
} catch (Exception e) {
throw new java.sql.SQLException(e);
}
}

public java.util.logging.Logger getParentLogger() {
// TODO Auto-generated method stub
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ LiquibaseProperties primaryLiquibaseProperties() {
SpringLiquibase primaryLiquibase(
@Qualifier("primaryDataSource") DataSource primaryDataSource,
@Qualifier("primaryLiquibaseProperties")
LiquibaseProperties primaryLiquibaseProperties) {
LiquibaseProperties primaryLiquibaseProperties) {
return springLiquibase(primaryDataSource, primaryLiquibaseProperties);
}

Expand All @@ -55,7 +55,7 @@ DataSourceProperties secondaryDataSourceProperties() {
@ConfigurationProperties("datasource.secondary.hikari")
DataSource secondaryDataSource(
@Qualifier("secondaryDataSourceProperties")
DataSourceProperties secondaryDataSourceProperties) {
DataSourceProperties secondaryDataSourceProperties) {
return secondaryDataSourceProperties.initializeDataSourceBuilder().build();
}

Expand All @@ -69,7 +69,7 @@ LiquibaseProperties secondaryLiquibaseProperties() {
SpringLiquibase secondaryLiquibase(
@Qualifier("secondaryDataSource") DataSource secondaryDataSource,
@Qualifier("secondaryLiquibaseProperties")
LiquibaseProperties secondaryLiquibaseProperties) {
LiquibaseProperties secondaryLiquibaseProperties) {
return springLiquibase(secondaryDataSource, secondaryLiquibaseProperties);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,4 @@ public class TenantRoutingDatasource extends AbstractRoutingDataSource {
protected String determineCurrentLookupKey() {
return tenantIdentifierResolver.resolveCurrentTenantIdentifier();
}

public boolean isWrapperFor(Class<?> iface) throws java.sql.SQLException {
// TODO Auto-generated method stub
return iface != null && iface.isAssignableFrom(this.getClass());
}

public <T> T unwrap(Class<T> iface) throws java.sql.SQLException {
// TODO Auto-generated method stub
try {
if (iface != null && iface.isAssignableFrom(this.getClass())) {
return (T) this;
}
throw new java.sql.SQLException("Auto-generated unwrap failed; Revisit implementation");
} catch (Exception e) {
throw new java.sql.SQLException(e);
}
}

public java.util.logging.Logger getParentLogger() {
// TODO Auto-generated method stub
return null;
}
}
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
<module>jpa/multitenancy/schema</module>
<module>r2dbc/boot-jooq-r2dbc-sample</module>
<module>r2dbc/boot-r2dbc-sample</module>
<module>open-api-spring-boot</module>
<module>jmh-benchmark</module>
<module>scheduler/boot-jobrunr-sample</module>
<module>scheduler/boot-scheduler-quartz</module>
<module>open-api-spring-boot</module>
<module>jmh-benchmark</module>
</modules>

<profiles>
Expand Down

0 comments on commit 41f76d1

Please sign in to comment.