MinecraftForge / ForgeFlower

Forge's modifications to FernFlower. Fixing various bugs/inconsistencies. Main Repo: https://github.com/MinecraftForge/FernFlower
Apache License 2.0
80 stars 44 forks source link

Simple lambdas not condensed. #52

Closed LexManos closed 4 years ago

LexManos commented 4 years ago

See Registry class in Minecraft. Simple lambdas, that can be expressed in a single line are not printed as a single line:

public static final Registry<Biome> BIOME = forge("biome", Biome.class, () -> {
    return Biomes.DEFAULT;
});

vs public static final Registry<Biome> BIOME = forge("biome", Biome.class, () -> Biomes.DEFAULT);