Skip to content

Commit

Permalink
#353 Fix PR suggestion and make a couple of methods private.
Browse files Browse the repository at this point in the history
  • Loading branch information
yruslan committed Feb 12, 2024
1 parent a520454 commit 35b7592
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ object SqlGeneratorLoader {
sqlGenerator
}

def fromDriverName(driver: String, sqlConfig: SqlConfig): SqlGenerator = {
private def fromDriverName(driver: String, sqlConfig: SqlConfig): SqlGenerator = {
driver match {
case "org.postgresql.Driver" => new SqlGeneratorPostgreSQL(sqlConfig)
case "oracle.jdbc.OracleDriver" => new SqlGeneratorOracle(sqlConfig)
Expand All @@ -58,7 +58,7 @@ object SqlGeneratorLoader {
}
}

def fromClass(clazz: String, sqlConfig: SqlConfig): SqlGenerator = {
private def fromClass(clazz: String, sqlConfig: SqlConfig): SqlGenerator = {
Class.forName(clazz)
.getConstructor(classOf[SqlConfig])
.newInstance(sqlConfig)
Expand Down

0 comments on commit 35b7592

Please sign in to comment.