lombok-intellij-plugin icon indicating copy to clipboard operation
lombok-intellij-plugin copied to clipboard

No usages found for @Delegate methods

Open cbeams opened this issue 9 years ago • 10 comments

Carried over from original posting at https://code.google.com/p/projectlombok/issues/detail?id=779

Repro steps:

  1. Create type A with method #doStuff
  2. Create type B with a field of type A annotated with @Delegate
  3. In a main method (or elsewhere), call B#doStuff (the delegated method)
  4. Go to the definition of A#doStuff
  5. Notice that it shows up as an "unused" method (grayed out, etc)

The expected behaviour is that Lombok's IDEA plugin would detect that A#doStuff is in fact being "used", just indirectly through the call to B#doStuff.

I'm using:

  • Lombok v1.14.8 / v1.16.0
  • Lombok IDEA plugin v0.8.9
  • IDEA 14.1 EAP (IU-140.2110.5)

cbeams avatar Feb 05 '15 00:02 cbeams