I just downloaded the Scala eclipse IDE but am getting some errors after importing my project
method getTableConfig is defined twice conflicting symbols both originated in file '....'
Here is the sample code, any reason why this error pops up - code compiled successfully though
package com.mavencode.app.config
import java.io.{BufferedReader, File, InputStream, InputStreamReader}
import ...
object ConfigUtil
{
def getTableConfig(configKey:String) (implicit config: Config) : ConnectionConfig = {
val report: Config = config.getConfig(s"tables.$configKey")
val db: Config = config.getConfig(s"db.${report.getString("db")}")
ConnectionConfig(
db.getString("host"),
db.getInt("port"),
db.getString("database"),
similarity.getString("table"),
db.getString("user"),
db.getString("password"),
report.getInt("lowerBound"),
report.getInt("upperBound"),
report.getInt("numPartitions")
)
}