Skip to content

Commit 81304d9

Browse files
committed
Make enums return the fully qualified name for proper type verification
1 parent c513d9a commit 81304d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/parser/JavaSourceParser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class JavaSourceParser(private val jarFiles: List<File>) : ClassParser {
9797
fields = enumDecl.entries.map {
9898
ParsedField(
9999
name = it.nameAsString,
100-
type = enumDecl.nameAsString,
100+
type = enumDecl.fullyQualifiedName.toString(),
101101
visibility = Visibility.PUBLIC,
102102
comment = extractMainComment(it.javadoc.getOrNull())
103103
)

0 commit comments

Comments
 (0)