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

V7027. An 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)

This diagnostic is classified as:

What a quick draw in the Wild West of Coding —
you caught the bug in sec!
But we catch them in milliseconds. How about a duel?

Try free