79178074

Date: 2024-11-11 14:45:13
Score: 1
Natty:
Report link

So late, I know, but ...

In this snippet:

if (MY_ANNOTATION == node.toString()) ...

Use equals() method to compare two strings:

if (MY_ANNOTATION.equals(node.toString())) ...
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Diogo Dio Pinto