Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve JavadocParser and fix case-sensitivity #2905

Merged
merged 2 commits into from Mar 21, 2023

Conversation

qwwdfsad
Copy link
Member

@qwwdfsad qwwdfsad commented Mar 7, 2023

  • Get rid of safeEnumValueOf that was an unnecessary public API burden and constantly allocating
  • Restructure JavadocParser.parseDocTag so it has one lever of nesting less
  • Make tag parsing case-sensitive

Fixes #2907

@qwwdfsad qwwdfsad requested a review from vmishenev March 7, 2023 18:59
* Get rid of safeEnumValueOf that was an unnecessary public API burden and constantly allocating
* Restructure JavadocParser.parseDocTag so it has one lever of nesting less
* Make tag parsing case-sensitive

Fixes #2907
@qwwdfsad qwwdfsad changed the title Get rid of linear-search and always allocating safeEnumValueOf Improve JavadocParser and fix case-sensitivity Mar 8, 2023
Copy link
Member

@vmishenev vmishenev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to have a test (e.g. in JavadocParserTest.kt).
By the way, for KDoc there is the different behaviour

@qwwdfsad
Copy link
Member Author

Nice one, filed #2929

@qwwdfsad qwwdfsad merged commit ff5aa67 into master Mar 21, 2023
@qwwdfsad qwwdfsad deleted the get-rid-of-obsolete-api branch March 21, 2023 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dokka Javadoc's tag parser is case-insensitive
2 participants