Reply to post: Re: False positives?

IntelliJ IDEA plugin catches lazy copy-pasted Java source

A Non e-mouse Silver badge

Re: False positives?

It's looking at code you paste in, and comparing it to other code within your code base. Where it finds a match, it suggests that instead of copy/pasting the code multiple times you apply software engineering basics and create a callable method.

I thought Jetbrains' tools already had smarts to highlight potentially duplicate code? (I'm sure I've seen a suggestion along similar lines in some of my projects already)

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon