Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
V7027. Object is passed as an...
menu mobile close menu
Additional information
toggle menu Contents

V7027. Object is passed as an argument to its own method.

Jun 17 2026

The analyzer has detected a method call where an object is used as an argument to its own method. Perhaps this is erroneous code and another object should be passed to the method instead.

The example:

a.startsWith(a)

Due to a typo, the incorrect variable name is used.

The fixed code:

a.startsWith(b)