@@ -298,7 +298,7 @@ object ArangoDBConf {
298
298
* @param comment Additional info regarding to the removed config. For example,
299
299
* reasons of config deprecation, what users should use instead of it.
300
300
*/
301
- case class DeprecatedConfig (key : String , version : String , comment : String )
301
+ final case class DeprecatedConfig (key : String , version : String , comment : String )
302
302
303
303
/**
304
304
* Maps deprecated Spark ArangoDB config keys to information about the deprecation.
@@ -320,7 +320,7 @@ object ArangoDBConf {
320
320
* users that they set non-default value to an already removed config.
321
321
* @param comment Additional info regarding to the removed config.
322
322
*/
323
- case class RemovedConfig (key : String , version : String , defaultValue : String , comment : String )
323
+ final case class RemovedConfig (key : String , version : String , defaultValue : String , comment : String )
324
324
325
325
/**
326
326
* The map contains info about removed Spark ArangoDB configs. Keys are Spark ArangoDB config names,
@@ -363,7 +363,7 @@ class ArangoDBConf(opts: Map[String, String]) extends Serializable with Logging
363
363
364
364
/** Return the value of Spark ArangoDB configuration property for the given key. */
365
365
@ throws[NoSuchElementException ](" if key is not set" )
366
- def getConfString (key : String ): String = settings.get(key). getOrElse(throw new NoSuchElementException (key))
366
+ def getConfString (key : String ): String = settings.getOrElse(key, throw new NoSuchElementException (key))
367
367
368
368
/**
369
369
* Return the value of Spark ArangoDB configuration property for the given key. If the key is not set
@@ -389,7 +389,7 @@ class ArangoDBConf(opts: Map[String, String]) extends Serializable with Logging
389
389
* Return the `string` value of Spark ArangoDB configuration property for the given key. If the key is
390
390
* not set, return `defaultValue`.
391
391
*/
392
- def getConfString (key : String , defaultValue : String ): String = settings.get(key). getOrElse(defaultValue)
392
+ def getConfString (key : String , defaultValue : String ): String = settings.getOrElse(key, defaultValue)
393
393
394
394
/**
395
395
* Return all the configuration properties that have been set (i.e. not the default).
@@ -403,7 +403,7 @@ class ArangoDBConf(opts: Map[String, String]) extends Serializable with Logging
403
403
*/
404
404
def getAllDefinedConfigs : Seq [(String , String , String )] =
405
405
confEntries.values.filter(_.isPublic).map { entry =>
406
- val displayValue = settings.get (entry.key).getOrElse( entry.defaultValueString)
406
+ val displayValue = settings.getOrElse (entry.key, entry.defaultValueString)
407
407
(entry.key, displayValue, entry.doc)
408
408
}.toSeq
409
409
0 commit comments