how to add a delegating method to library call?


Map<String,String> map = ...

if map was my class, i could just put my cursor on the get-call, press ctrl+f6 and add a delegating method. is this possible for library calls? i do not want to change the library call (obviously) but i want to add some logic to every call that is made and replace every get-call by myspecialget which then does something and then calls map.get(x)

can i avoid changing every call manually?

Please sign in to leave a comment.