Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Apr 10, 2022
1 parent 43bc576 commit e4c2eb8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ object EntityUtil {
val sym = TypeTree.of[T].symbol
val primaryConstructor = sym.primaryConstructor
if (primaryConstructor.isNoSymbol) {
report.throwError(
report.errorAndAbort(
s"Could not find the primary constructor for ${sym.fullName}. type ${sym.fullName} must be a class, not trait or type parameter"
)
}
val excludeNames: Set[String] = (excludes match {
case Varargs(expr) if (expr.exists(_.value.isEmpty)) =>
report.throwError(
report.errorAndAbort(
s"You must use String literal values for field names to exclude from case class ${sym.fullName}",
excludes.asTerm.pos
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ object SQLSyntaxSupportFactory {
) match {
case result: ImplicitSearchSuccess => result.tree
case _ =>
report.throwError(
report.errorAndAbort(
s"could not find implicit of TypeBinder[${typeTree.show}]"
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ object autoConstruct {
typeTree.tpe
)
case _ =>
report.throwError(
report.errorAndAbort(
s"could not find implicit of TypeBinder[${typeTree.show}]"
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object autoNamedValues {
Select.unique(entity.asTerm, name) :: Nil
).asExprOf[ParameterBinder]
case _ =>
report.throwError(
report.errorAndAbort(
s"could not find ParameterBinderFactory[${typeTree.show}]"
)
}
Expand Down

0 comments on commit e4c2eb8

Please sign in to comment.