Back to search

Institutional Repository of Vilnius University

Nenaudojamo kodo pašalinimas Java projektuose /

Abstract

dc:description

This 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.*

Chain of custody

source
Harvested from
Vilnius University
Base URL
epublications.vu.lt/oai
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
related terms
citation

Ališauskaitė, Vaiva,. Nenaudojamo kodo pašalinimas Java projektuose /. Institutional Repository of Vilnius University, 2025. https://repository.vu.lt/VU:ELABAETD239029752&prefLang=en_US