apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.61k stars 836 forks source link

Java Code Templates for records and sealed types #7088

Closed lkishalmi closed 4 months ago

lkishalmi commented 5 months ago

Well, I've started to work with Java 17 lately also using some records. It seems while new language features are supported, there is still a way to go.

This one is trivial to add a few code templates to work with records and sealed types.

lkishalmi commented 5 months ago

@mbien Would this be Ok with you? I went with P for public and p for private that would be mostly consistent with other abbrevs like Psfs for public static final String

mbien commented 5 months ago

@mbien Would this be Ok with you? I went with P for public and p for private that would be mostly consistent with other abbrevs like Psfs for public static final String

Yes, if this makes it more consistent to other templates - please change it as you think its best. I am no heavy template user, I probably know less than 10. But rec and lofmofsof I will probably remember ;)

lkishalmi commented 5 months ago

The change is already there.