About warning function

Answered

Code completion is a useful function, but you may still make mistakes.
For example, is there a function to warn about the following code?
↓ (getId is mistake)
if (resource1.getIpAddress().equals(resource2.getId()) { ... }

0
2 comments

How would IDE know that it's a mistake?

0

I am sorry that the example was poor.
In the case of the code shown earlier, it was meaningless to compare the IP address and ID (eg user ID), so I thought it would be useful if there was a warning function, so I asked a question.

0

Please sign in to leave a comment.