Skip to content

Commit

Permalink
Fix delicate api warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pjagielski committed Oct 20, 2021
1 parent 2f5b2cb commit a7959cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MappingsGenerator : SourceGenerator {
override fun generate(graph: EntityGraph, graphs: EntityGraphs, packageName: String, typeEnv: TypeEnvironment): FileSpec {
val fileSpec = FileSpec.builder(packageName, fileName = "mappings")
.addAnnotation(
AnnotationSpec.builder(Suppress::class.java)
AnnotationSpec.builder(Suppress::class)
.addMember("%S", "UNCHECKED_CAST")
.addMember("%S", "UNUSED_PARAMETER")
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TablesGenerator : SourceGenerator {
override fun generate(graph: EntityGraph, graphs: EntityGraphs, packageName: String, typeEnv: TypeEnvironment): FileSpec {
val fileSpec = FileSpec.builder(packageName, fileName = "tables")
.addAnnotation(
AnnotationSpec.builder(Suppress::class.java).addMember("%S", "UNUSED_PARAMETER").build()
AnnotationSpec.builder(Suppress::class).addMember("%S", "UNUSED_PARAMETER").build()
)
.addImport("org.jetbrains.exposed.sql", "Table", "insert")
.addImport("org.jetbrains.exposed.sql.java-time", "date", "datetime", "timestamp")
Expand Down

0 comments on commit a7959cb

Please # to comment.