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

[inspect] Don't crash when inspecting internal classes #282

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

alexander-yakushev
Copy link
Member

@alexander-yakushev alexander-yakushev commented Aug 1, 2024

  • You've added tests to cover your change(s)
  • You've updated the changelog

@alexander-yakushev alexander-yakushev force-pushed the internal-inspect branch 4 times, most recently from 390739a to b8b720b Compare August 1, 2024 06:17
(as-> member-string s
(string/replace s #"[\w\.]+\.(\w+\()" "$1") ;; remove class from method name
(string/replace s #"[\w\.]+\.(\w+)$" "$1") ;; remove class from field name
(if-let [canonical (.getCanonicalName class)]
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add a comment here explaining when we won't have the canonical name?

Copy link
Member Author

Choose a reason for hiding this comment

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

Left a comment, the list is in the javadoc for .getCanonicalName.

@bbatsov
Copy link
Member

bbatsov commented Aug 1, 2024

The PR looks good to me.

@alexander-yakushev alexander-yakushev merged commit 523cf2a into master Aug 1, 2024
58 checks passed
@alexander-yakushev alexander-yakushev deleted the internal-inspect branch August 1, 2024 06:35
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.

2 participants