vertx-ifx/zero-ifx-es/src/main/java/io/vertx/up/plugin/elasticsearch/ElasticSearchHelper.java
Method mappingsBuilder
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Map<String, Object> mappingsBuilder(final ConcurrentMap<String, Class<?>> mappings) {
final Map<String, Object> properties = new HashMap<>();
// process field: key
if (mappings.containsKey("key")) {
Method getClient
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
RestHighLevelClient getClient(final JsonObject options) {
Fn.outWeb(Ut.isNil(options), _404ConfigurationMissingExceptionn.class, this.getClass());
final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();
credentialsProvider.setCredentials(AuthScope.ANY,
new UsernamePasswordCredentials(