Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentlauvlwj committed May 5, 2024
1 parent 47aeefc commit e35ff78
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 @@ -85,7 +85,7 @@ internal class MetadataParser(resolver: Resolver, environment: SymbolProcessorEn

if (cls.classKind == INTERFACE && !cls.isSubclassOf<Entity<*>>()) {
val name = cls.qualifiedName!!.asString()
throw IllegalStateException("$name must extends from org.ktorm.entity.Entity.")
throw IllegalStateException("$name must extend from org.ktorm.entity.Entity.")
}

_logger.info("[ktorm-ksp-compiler] parse table metadata from entity: ${cls.qualifiedName!!.asString()}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class MetadataParserTest : BaseKspTest() {
""".trimIndent())

@Test
fun testInterfaceNotExtendingEntity() = kspFailing("User must extends from org.ktorm.entity.Entity.", """
fun testInterfaceNotExtendingEntity() = kspFailing("User must extend from org.ktorm.entity.Entity.", """
@Table
interface User {
val id: Int
Expand Down

0 comments on commit e35ff78

Please sign in to comment.