Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
206 views
in Technique[技术] by (71.8m points)

java - How to find unused classes generated by Lombok

How to find unused classes generated by Lombok, if Foo.builder() is not used or if the all arguments constructor is not used I would prefer to remove these annotations. But how can I find this in my code

@Builder
@AllArgsConstructor
@NoArgsConstructor
class Foo {
}
question from:https://stackoverflow.com/questions/66061346/how-to-find-unused-classes-generated-by-lombok

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

you can delombok your code.

For Intellij Check here

Next may be Sonar will also help you for some additional analysis to find used code


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...