dropwizard-db/src/main/java/io/dropwizard/db/DataSourceFactory.java
DataSourceFactory
has 84 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class DataSourceFactory implements PooledDataSourceFactory {
private static final String DEFAULT_VALIDATION_QUERY = "/* Health Check */ SELECT 1";
@SuppressWarnings("UnusedDeclaration")
File DataSourceFactory.java
has 501 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
package io.dropwizard.db;
import com.codahale.metrics.MetricRegistry;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
Method build
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public ManagedDataSource build(MetricRegistry metricRegistry, String name) {
final Properties dbProperties = new Properties();
properties.forEach(dbProperties::setProperty);