projectlombok / lombok

Very spicy additions to the Java programming language.
https://projectlombok.org/
Other
12.82k stars 2.38k forks source link

[BUG] Delombok fails on unnamed patterns in Java 22 #3677

Open mintdaniel42 opened 3 months ago

mintdaniel42 commented 3 months ago

Describe the bug When running delombok and you have unnamed patterns

To Reproduce

  1. Create an unnamed Exception catch branch like below
    catch (SQLException _) {
    return null;
    }
  2. Run delombok
  3. The unnamed patterns get removed like below
    catch (SQLException ) {
    return null;
    }

Expected behavior Keep the underscores when delomboking

Version info (please complete the following information):

Rawi01 commented 3 months ago

Support for unnamed variables was added in lombok 1.18.32, should work after an update.