mplushnikov / lombok-intellij-plugin

Lombok Plugin for IntelliJ IDEA
Apache License 2.0
3.11k stars 635 forks source link

Allow Delombok to support @CleanUp #543

Open mmoayyed opened 6 years ago

mmoayyed commented 6 years ago

Short description

With the following piece of code:

@Cleanup HttpResponse response = HttpUtils.execute(url, HttpMethod.GET.name());

Selecting delombok from the Actions menu simply shows: "Nothing here"

Expected behavior

The plugin should be able to recognize the @Cleanup annotation and allow delombok to support it.

Version information

java -java version "11" 2018-09-25
Java(TM) SE Runtime Environment 18.9 (build 11+28)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)

macOS 10.13.6

v0.21.IDEA-EAP

macOS 10.13.6

Steps to reproduce

@Cleanup HttpResponse response = HttpUtils.execute(url, HttpMethod.GET.name());

Or this:

@Cleanup InputStream in = new FileInputStream(args[0]);

What can I do to help solve this problem?

mplushnikov commented 6 years ago

At this moment, delombok in plugin doesn't support delomboking of @CleanUp. If your are familar with IntelliJ plugin development you can supply a PR at any time!