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 10 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

Similar issue #186
Similar issue #144

mplushnikov avatar Feb 07 '16 08:02 mplushnikov

+1

Was about to post an issue "Method is marked as unused, if all usages are via @Delegate method"

Ajk4 avatar Feb 22 '18 11:02 Ajk4

+1

It would be great, if the usages would include JSF Expression Language.

Rokko11 avatar Sep 14 '18 12:09 Rokko11

+1 Was about to do the same as @Ajk4

heinebold avatar May 29 '19 15:05 heinebold

+1

vorp123 avatar Feb 18 '20 07:02 vorp123

+1

t2gran avatar Feb 21 '20 09:02 t2gran

+1

agrostis avatar May 21 '20 15:05 agrostis

+1

elkkhan avatar Oct 27 '20 14:10 elkkhan

+1

dimamj avatar Jan 21 '21 16:01 dimamj

+1 :'(

surecloud-bpearson avatar Dec 07 '22 10:12 surecloud-bpearson