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

SONARPY-1800 NonCallableCallCheck migration: Use the display name of the new type model #1777

Conversation

guillaume-dequenne-sonarsource
Copy link
Contributor

No description provided.

Copy link

if (name != null) {
return String.format("Fix this call; \"%s\"%s is not callable.", name, addTypeName(calleeType));
return String.format("Fix this call; \"%s\"%s is not callable.", name, addTypeName(typeV2));

Choose a reason for hiding this comment

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

In currently used Java version String.format could be simplified by the String.formatted method:

"Fix this call; \"%s\"%s is not callable.".formatted(name, addTypeName(typeV2))

Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM, just one minor suggestion related to strings formatting (no need to review again, feel free to ignore)

@guillaume-dequenne-sonarsource guillaume-dequenne-sonarsource merged commit de9a80f into rnd/type-inference-engine-specification Apr 29, 2024
0 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants