Institutional Repository of Vilnius University
Nenaudojamo kodo pašalinimas Java projektuose /
Abstract
dc:descriptionThis research investigates the detection of unused code in libraries based on which methods are used in projects that depend on those libraries. To achieve this goal a Gradle static analysis tool was developed to identify methods in libraries that are present but unused. The tool performs the analysis in three stages: first, it identifies methods that are unused within the library itself, second, it detects calls to library methods in projects that use the library and finally, based on the results of previous stages, it identifies the methods that are not used in any project. The tool was tested using a custom test library and a test project that depends on it, where various scenarios that could influence unused method detection were simulated, including inheritance, method overloading, method calls in constructors, initialization blocks, method references, and more. The tool was also tested on the real¬world open¬source library Apache Lucene and the project Apache Solr, which depends on it. The results showed that the tool reliably detects both used and unused methods. For further improvement, it is recommended to implement a more user¬friendly interface, expand support for Spring framework and other JVM languages, add Maven support and prepare the tool for public release.
Degree
thesis:*- Grantor dc:publisher
- Institutional Repository of Vilnius University
- Year dc:date
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Ališauskaitė, Vaiva,
Rights
dc:rights- Statement dc:rights
-
- info:eu-repo/semantics/openAccess
- Language dc:language
- lit
Identifiers
dc:identifier.*- Repository record dc:identifier
- https://repository.vu.lt/VU:ELABAETD239029752&prefLang=en_US