Remove unused methods / classes from dependencies

Many libraries contain many more functions than I need. If I close them in my bank, the bank contains 80% of the code that is never used.

Is there a way to remove unused methods and classes from dependencies that I will shadow in my jar?

+6
source share
1 answer

If you have very good integration tests, I advise you to be very careful about this idea.

Too often, frameworks can use reflection here or there - and no tool can determine through static analysis which parts of the code will be called through reflection.

: ? , Java SE , .

: ? ? -, ? , " jar".

: , ! , , , , , . , " " , .

+2

All Articles