Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Remove unnecessary spaces, optimize imports and resolve inline variable warnings.
  • Loading branch information
roimenashe authored Aug 11, 2021
1 parent 7af6439 commit dc64bc8
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ public AerospikeReactorClient aerospikeReactorClient(AerospikeClient aerospikeCl
@Bean(name = "aerospikeEventLoops", destroyMethod = "close")
@ConditionalOnMissingBean
public EventLoops aerospikeEventLoops() {
NioEventLoops eventLoops = new NioEventLoops();
return eventLoops;
return new NioEventLoops();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.time.Duration;

import com.aerospike.client.policy.AuthMode;
import com.aerospike.client.policy.QueryPolicy;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public IndexesCacheHolder aerospikeIndexCache() {
return new IndexesCacheHolder();
}


@Bean(name = "mappingAerospikeConverter")
@ConditionalOnMissingBean(name = "mappingAerospikeConverter")
public MappingAerospikeConverter mappingAerospikeConverter(AerospikeMappingContext aerospikeMappingContext,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
@Configuration(proxyBeanMethods = false)
class AerospikeReactiveDataConfiguration {


@Bean(name = "reactiveAerospikeTemplate")
@ConditionalOnMissingBean(name = "reactiveAerospikeTemplate")
public ReactiveAerospikeTemplate reactiveAerospikeTemplate(MappingAerospikeConverter mappingAerospikeConverter,
Expand Down Expand Up @@ -82,5 +81,4 @@ public ReactiveAerospikePersistenceEntityIndexCreator reactiveAerospikePersisten
@Lazy ReactiveAerospikeTemplate template) {
return new ReactiveAerospikePersistenceEntityIndexCreator(aerospikeMappingContext, template);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.autoconfigure.data.ConditionalOnRepositoryType;
import org.springframework.boot.autoconfigure.data.RepositoryType;
import org.springframework.context.annotation.Configuration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,4 @@ protected RepositoryConfigurationExtension getRepositoryConfigurationExtension()
@EnableReactiveAerospikeRepositories
private static class EnableReactiveAerospikeRepositoriesConfiguration {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.autoconfigure.data.ConditionalOnRepositoryType;
import org.springframework.boot.autoconfigure.data.RepositoryType;
import org.springframework.context.annotation.Configuration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,4 @@ protected RepositoryConfigurationExtension getRepositoryConfigurationExtension()
@EnableAerospikeRepositories
private static class EnableAerospikeRepositoriesConfiguration {
}

}

0 comments on commit dc64bc8

Please sign in to comment.