package yanagishima.provider;

import lombok.extern.slf4j.Slf4j;
import yanagishima.config.YanagishimaConfig;

import javax.inject.Inject;
import javax.inject.Provider;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

@Slf4j
public class ConnectionProvider implements Provider<Connection> {
	private final YanagishimaConfig config;

	@Inject
	public ConnectionProvider(YanagishimaConfig config) {
		this.config = config;
	}

	@Override
	public Connection get() {
		try {
			return DriverManager.getConnection(config.getConnectionUrl(), config.getConnectionUsername(), config.getConnectionPassword());
		} catch (SQLException e) {
			throw new RuntimeException(e);
		}
	}
}

@@ -28,42 +28,8 @@
 r;%0A%0A
-import lombok.extern.slf4j.Slf4j;%0A
 impo
@@ -222,15 +222,8 @@
 n;%0A%0A
-@Slf4j%0A
 publ

Remove unsed @Slf4j annotation