projectlombok / lombok

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

[FEATURE] Make a non static variable in @UtilityClass #2814

Open fatihaksoy59 opened 3 years ago

fatihaksoy59 commented 3 years ago

Describe the feature Add the ability to make a non static variable in experimantal utility class via the configuration file or annotation


@UtilityClass
public class Test {

    @Autowired
        // Maybe we can add an annotation ex: @NonStatic
    private ExampleClass example
skaba commented 3 years ago

Utility classes can't be instantiated. How will this work?