Skip to content

Fix compilation warnings #1053

@wajda

Description

@wajda
  • [WARNING] /home/wajda/Projects/spline/commons/src/main/scala/za/co/absa/spline/common/JsonPath.scala:37: non-variable type argument String in type pattern scala.collection.immutable.Map[String,] (the underlying of Map[String,]) is unchecked since it is eliminated by erasure

  • [WARNING] /home/wajda/Projects/spline/commons/src/main/scala/za/co/absa/spline/common/JsonPath.scala:38: non-variable type argument String in type pattern java.util.Map[String,_] is unchecked since it is eliminated by erasure

  • [WARNING] /home/wajda/Projects/spline/commons/src/main/scala/za/co/absa/spline/common/JsonPath.scala:52: non-variable type argument String in type pattern scala.collection.immutable.Map[String,Any] (the underlying of Map[String,Any]) is unchecked since it is eliminated by erasure

  • [WARNING] /home/wajda/Projects/spline/commons/src/main/scala/za/co/absa/spline/common/JsonPath.scala:53: non-variable type argument String in type pattern java.util.Map[String,Any] is unchecked since it is eliminated by erasure

  • [WARNING] /home/wajda/Projects/spline/commons/src/main/scala/za/co/absa/spline/common/webmvc/ScalaFutureMethodReturnValueHandler.scala:54: abstract type pattern ScalaFutureMethodReturnValueHandler.this.F is unchecked since it is eliminated by erasure

  • [WARNING] /home/wajda/Projects/spline/commons/src/main/scala/za/co/absa/spline/common/webmvc/ScalaFutureMethodReturnValueHandler.scala:54: The outer reference in this type test cannot be checked at run time.

  • [WARNING] /home/wajda/Projects/spline/persistence/src/test/scala/com/arangodb/model/ImplicitsSpec.scala:30: class SkiplistIndexOptions in package model is deprecated

  • [WARNING] /home/wajda/Projects/spline/persistence/src/test/scala/com/arangodb/model/ImplicitsSpec.scala:34: class HashIndexOptions in package model is deprecated

  • [WARNING] /home/wajda/Projects/spline/producer-services/src/main/scala/za/co/absa/spline/producer/service/model/ExecutionPlanPersistentModelBuilder.scala:291: non-variable type argument String in type pattern scala.collection.immutable.Map[String,] (the underlying of Map[String,]) is unchecked since it is eliminated by erasure

  • [WARNING] /home/wajda/Projects/spline/producer-services/src/main/scala/za/co/absa/spline/producer/service/repo/ExecutionPlanDeserFixAspect.scala:100: non-variable type argument String in type pattern scala.collection.immutable.Map[String,] (the underlying of Map[String,]) is unchecked since it is eliminated by erasure

  • [WARNING] /home/wajda/Projects/spline/producer-services/src/main/scala/za/co/absa/spline/producer/service/model/ExecutionPlanPersistentModelBuilder.scala:239: match may not be exhaustive.
    It would fail on the following input: AttrOrExprRef(None, None)

  • [WARNING] /home/wajda/Projects/spline/producer-model-mapper/src/main/scala/za/co/absa/spline/producer/modelmapper/v1_0/spark/AttributeRefConverter.scala:33: non-variable type argument String in type pattern scala.collection.immutable.Map[String,Any] (the underlying of za.co.absa.spline.producer.modelmapper.v1_0.TypesV10.ExprDef) is unchecked since it is eliminated by erasure

  • [WARNING] /home/wajda/Projects/spline/producer-model-mapper/src/main/scala/za/co/absa/spline/producer/modelmapper/v1_0/spark/SparkSplineExpressionConverter.scala:32: non-variable type argument String in type pattern scala.collection.immutable.Map[String,Any] (the underlying of za.co.absa.spline.producer.modelmapper.v1_0.TypesV10.ExprDef) is unchecked since it is eliminated by erasure

  • [WARNING] /home/wajda/Projects/spline/producer-model-mapper/src/main/scala/za/co/absa/spline/producer/modelmapper/v1_0/spark/SparkSplineObjectConverter.scala:28: non-variable type argument String in type pattern scala.collection.immutable.Map[String,Any] (the underlying of za.co.absa.spline.producer.modelmapper.v1_0.TypesV10.AttrDef) is unchecked since it is eliminated by erasure

  • [WARNING] /home/wajda/Projects/spline/producer-model-mapper/src/main/scala/za/co/absa/spline/producer/modelmapper/v1_0/spark/SparkSplineObjectConverter.scala:29: non-variable type argument String in type pattern scala.collection.immutable.Map[String,Any] (the underlying of za.co.absa.spline.producer.modelmapper.v1_0.TypesV10.ExprDef) is unchecked since it is eliminated by erasure

  • [WARNING] /home/wajda/Projects/spline/admin/src/main/scala/za/co/absa/spline/admin/AdminCLI.scala:106: match may not be exhaustive.
    It would fail on the following inputs: (, AdminCLIConfig(DBExec(, _), , )), (, AdminCLIConfig(DBUpgrade(), _, _))

  • [WARNING] /home/wajda/Projects/spline/admin/src/main/scala/za/co/absa/spline/admin/AdminCLI.scala:109: match may not be exhaustive.
    It would fail on the following inputs: (, AdminCLIConfig(DBExec(, _), , )), (, AdminCLIConfig(DBUpgrade(), _, _))

  • [WARNING] /home/wajda/Projects/spline/admin/src/main/scala/za/co/absa/spline/admin/AdminCLI.scala:128: match may not be exhaustive.
    It would fail on the following inputs: (, AdminCLIConfig(DBInit(, _, _), , )), (, AdminCLIConfig(DBUpgrade(), _, _))

  • [WARNING] /home/wajda/Projects/spline/admin/src/main/scala/za/co/absa/spline/admin/AdminCLI.scala:131: match may not be exhaustive.
    It would fail on the following inputs: (, AdminCLIConfig(DBInit(, _, _), , )), (, AdminCLIConfig(DBUpgrade(), _, _))

  • [WARNING] /home/wajda/Projects/spline/admin/src/main/scala/za/co/absa/spline/admin/AdminCLI.scala:134: match may not be exhaustive.
    It would fail on the following inputs: (, AdminCLIConfig(DBInit(, _, _), , )), (, AdminCLIConfig(DBUpgrade(), _, _))

  • [WARNING] /home/wajda/Projects/spline/admin/src/main/scala/za/co/absa/spline/admin/AdminCLI.scala:137: match may not be exhaustive.
    It would fail on the following inputs: (, AdminCLIConfig(DBInit(, _, _), , )), (, AdminCLIConfig(DBUpgrade(), _, _))

  • [WARNING] /home/wajda/Projects/spline/admin/src/main/scala/za/co/absa/spline/admin/AdminCLI.scala:140: match may not be exhaustive.
    It would fail on the following inputs: (, AdminCLIConfig(DBInit(, _, _), , )), (, AdminCLIConfig(DBUpgrade(), _, _))

  • [WARNING] /home/wajda/Projects/spline/admin/src/main/scala/za/co/absa/spline/admin/AdminCLI.scala:143: match may not be exhaustive.
    It would fail on the following inputs: (, AdminCLIConfig(DBInit(, _, _), , )), (, AdminCLIConfig(DBUpgrade(), _, _))

  • [WARNING] /home/wajda/Projects/spline/admin/src/main/scala/za/co/absa/spline/admin/AdminCLI.scala:146: match may not be exhaustive.
    It would fail on the following inputs: (, AdminCLIConfig(DBInit(, _, _), , )), (, AdminCLIConfig(DBUpgrade(), _, _))

  • [WARNING] /home/wajda/Projects/spline/admin/src/main/scala/za/co/absa/spline/admin/AdminCLI.scala:149: match may not be exhaustive.
    It would fail on the following inputs: (, AdminCLIConfig(DBInit(, _, _), , )), (, AdminCLIConfig(DBUpgrade(), _, _))

  • [WARNING] /home/wajda/Projects/spline/admin/src/main/scala/za/co/absa/spline/admin/AdminCLI.scala:178: match may not be exhaustive.
    It would fail on the following input: (true, true)

  • [WARNING] /home/wajda/Projects/spline/test-data-generator/src/main/scala/za/co/absa/spline/testdatagen/GenCLI.scala:30: Adaptation of argument list by inserting () is deprecated: this is unlikely to be what you want.
    signature: Right.apply[A, B](value: B): scala.util.Right[A,B]
    given arguments:
    after adaptation: Right((): Unit)

  • [WARNING] /home/wajda/Projects/spline/test-data-generator/src/main/scala/za/co/absa/spline/testdatagen/GenCLI.scala:41: Adaptation of argument list by inserting () is deprecated: this is unlikely to be what you want.
    signature: Right.apply[A, B](value: B): scala.util.Right[A,B]
    given arguments:
    after adaptation: Right((): Unit)

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions