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

💡 Specify actual return types of Object expressions #23

Open
AyhamAl-Ali opened this issue Mar 13, 2023 · 2 comments
Open

💡 Specify actual return types of Object expressions #23

AyhamAl-Ali opened this issue Mar 13, 2023 · 2 comments
Labels
backend Issues that require backend code changes (java) enhancement Feature request, an issue about something that could be improved, or a PR improving something.

Comments

@AyhamAl-Ali
Copy link
Member

Expressions such as ExprAllBannedEntries have a return type of Object, but getReturnType method returns actual return types based on condition, we should find a way to return all values regardless of conditions

image

@AyhamAl-Ali AyhamAl-Ali added enhancement Feature request, an issue about something that could be improved, or a PR improving something. backend Issues that require backend code changes (java) labels Mar 13, 2023
@APickledWalrus
Copy link
Member

Maybe a doc annotation to override the content displayed here? Ex:
@ReturnType("player (players), text (IPs)")

@AyhamAl-Ali
Copy link
Member Author

That was the first idea came on my mind, the only reason I am trying to use this as a last resort is because will have to add it to all missing classes but it's most likely what will happen :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Issues that require backend code changes (java) enhancement Feature request, an issue about something that could be improved, or a PR improving something.
Projects
None yet
Development

No branches or pull requests

2 participants