Azul has introduced a brand new function that catalogs the supply code utilized by manufacturing Java functions in order that unused code could be eliminated. Code Stock collects detailed details about code data throughout the JVM to offer a report on what’s used throughout the Java workloads working in manufacturing.
The report additionally contains the date that code was first and final run, and may establish code on the class/package deal and technique stage.
By cataloging the code that’s really being utilized by functions, builders can take away unused, or “useless” code. In line with Azul, eradicating useless code can save builders time as a result of it cuts down on the quantity of code that must be maintained and makes codebases simpler to know.
The corporate went on to elucidate that whereas eradicating useless code could be helpful, it might additionally result in unintended penalties if code is eliminated that’s really nonetheless in use and wanted. Code Stock will assist builders be extra assured that what they’re eradicating is definitely not used.
“Utility builders wish to take away useless and unused code to make upkeep simpler however are terrified to take away something for worry of breaking the appliance,” mentioned Martin Van Ryswyk, chief product officer at Azul. “With Code Stock, builders now have a complicated instrument to assist pinpoint areas for cleanup.
Code comes as a part of Azul Vulnerability Detection, which is a instrument that detects identified vulnerabilities in code.