Skip to content

Commit

Permalink
delete scala.List,Convert a java.List to scala.List
Browse files Browse the repository at this point in the history
  • Loading branch information
SwordyZhao committed Jan 29, 2024
1 parent 7b000e9 commit 600363d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package org.apache.kyuubi.plugin.lineage.dispatcher.atlas
import org.apache.atlas.ApplicationProperties
import org.apache.commons.configuration.Configuration
import org.apache.spark.kyuubi.lineage.SparkContextHelper
import scala.collection.JavaConverters._

import java.util

Expand All @@ -28,9 +29,7 @@ class AtlasClientConf(configuration: Configuration) {
def get(entry: ConfigEntry): String = {
configuration.getProperty(entry.key) match {
case s: String => s
case l: List[_] => l.mkString(",")
case jl: util.List[_] => val jlString = jl.toString
jlString.substring(1, jlString.length - 1)
case jl: util.List[_] => jl.asScala.mkString(",")
case o if o != null => o.toString
case _ => entry.defaultValue
}
Expand Down

0 comments on commit 600363d

Please sign in to comment.