{"id":{"repo_id":"vilnius","oai_identifier":"oai:vu.lt:elaba:239029752"},"canonical_url":"https://search.ndltd.org/etd/vilnius/oai:vu.lt:elaba:239029752","repository":{"repo_id":"vilnius","name":"Vilnius University","base_url":"https://epublications.vu.lt/oai"},"display":{"title":"Nenaudojamo kodo pašalinimas Java projektuose /","abstract":"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.","abstract_html":"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.","abstract_has_math":false,"creators":["Ališauskaitė, Vaiva,"],"institution":"Institutional Repository of Vilnius University","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2025,"date_issued":"2025","date_published":"2025","updated_at":"2026-11-19T10:03:32Z","subjects":[],"languages":["lit"],"rights":["info:eu-repo/semantics/openAccess"],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://repository.vu.lt/VU:ELABAETD239029752&prefLang=en_US","outbound_label":"Repository record","outbound_source":"dc:identifier","record_url":"https://repository.vu.lt/VU:ELABAETD239029752&prefLang=en_US","record_label":"Repository record","record_kind":"record","record_source":"dc:identifier","download_url":null,"download_label":null,"download_source":null,"access_status":"open","embargo_until":null,"access_note":null},"source_record":{"url":"https://epublications.vu.lt/oai?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Avu.lt%3Aelaba%3A239029752","prefix":"oai_dc"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:creator","label":"Author","values":["Ališauskaitė, Vaiva,"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2025"]},{"key":"dc:publisher","label":"Institution","values":["Institutional Repository of Vilnius University"]},{"key":"dc:relation","label":"Dc Relation","values":["https://epublications.vu.lt/object/elaba:239029752/239029752.pdf"]},{"key":"dc:type","label":"Dc Type","values":["info:eu-repo/semantics/bachelorThesis"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language","label":"Dc Language","values":["lit"]},{"key":"dc:rights","label":"Dc Rights","values":["info:eu-repo/semantics/openAccess"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["https://repository.vu.lt/VU:ELABAETD239029752&prefLang=en_US"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description","label":"Description","values":["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."]},{"key":"dc:format","label":"Dc Format","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Nenaudojamo kodo pašalinimas Java projektuose /","Dead code removal in java projects."]}]}],"canonical_facts":{"dc:creator":["Ališauskaitė, Vaiva,"],"dc:date":["2025"],"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."],"dc:format":["application/pdf"],"dc:identifier":["https://repository.vu.lt/VU:ELABAETD239029752&prefLang=en_US"],"dc:language":["lit"],"dc:publisher":["Institutional Repository of Vilnius University"],"dc:relation":["https://epublications.vu.lt/object/elaba:239029752/239029752.pdf"],"dc:rights":["info:eu-repo/semantics/openAccess"],"dc:title":["Nenaudojamo kodo pašalinimas Java projektuose /","Dead code removal in java projects."],"dc:type":["info:eu-repo/semantics/bachelorThesis"]},"updated_at":"2026-11-19T10:03:32Z"}