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

[epilogue] Use more specific loggers at runtime, if available #7128

Conversation

BrandonS09
Copy link
Contributor

Changes to address #7093

@BrandonS09 BrandonS09 requested a review from a team as a code owner September 25, 2024 05:59
@BrandonS09 BrandonS09 closed this Sep 25, 2024
@BrandonS09 BrandonS09 reopened this Sep 25, 2024
Copy link
Member

@SamCarlberg SamCarlberg left a comment

Choose a reason for hiding this comment

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

Need to implement subtype lookup. You'll also need to add unit tests

}

private List<TypeMirror> getAllSubtypes() {
// This method should return all known subtypes of the given type.
Copy link
Member

Choose a reason for hiding this comment

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

What given type? You didn't give this function any parameters (note: you'll need to add some)

Comment on lines 60 to 61
// The implementation depends on how you track and store type hierarchies in
// your system.
Copy link
Member

Choose a reason for hiding this comment

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

No it doesn't

Comment on lines 62 to 63
// For simplicity, we'll return an empty list here.
return new ArrayList<>();
Copy link
Member

Choose a reason for hiding this comment

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

???

TypeElement reflectedType, Element element, List<TypeMirror> subtypes) {
StringBuilder builder = new StringBuilder(256);

// Combining multiple strings into fewer append calls
Copy link
Member

Choose a reason for hiding this comment

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

This code runs on the programmer's computer, not the weak roboRIO. A few more append calls are negligible on performance; readability and maintainability should take higher priority

@SamCarlberg
Copy link
Member

@BrandonS09 Will you be able to finish this? Some changes will still be needed; in particular, instanceof checks will need to be changed to direct class comparisons so longer inheritance chains can be logged correctly

@BrandonS09
Copy link
Contributor Author

Sorry, I have much less free time than when I originally opened the pull request and don't think I can finish it. Sorry for any inconveniences

@SamCarlberg
Copy link
Member

No worries. Just needed to know if we'd need someone else to continue this

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