{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,2]],"date-time":"2026-10-02T13:32:51Z","timestamp":1790947971334,"version":"4.1.0"},"reference-count":41,"publisher":"Association for Computing Machinery (ACM)","issue":"FSE","license":[{"start":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T00:00:00Z","timestamp":1750291200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Softw. Eng."],"published-print":{"date-parts":[[2025,6,19]]},"abstract":"<jats:p>\n                    Null-pointer exceptions are serious problem for Java, and researchers have developed type-based nullness checking tools to prevent them. These tools, however, have a downside: they require developers to write nullability annotations, which is time-consuming and hinders adoption. Researchers have therefore proposed\n                    <jats:italic toggle=\"yes\">nullability annotation inference tools,<\/jats:italic>\n                    whose goal is to (partially) automate the task of annotating a program for nullability. However, prior works rely on differing theories of what makes a set of nullability annotations good, making comparing their effectiveness challenging.\n                  <\/jats:p>\n                  <jats:p>In this work, we identify a systematic bias in some prior experimental evaluation of these tools: the use of \u201ctype reconstruction\u201d experiments to see if a tool can recover erased developer-written annotations. We show that developers make semantic code changes while adding annotations to facilitate typechecking, leading such experiments to overestimate the effectiveness of inference tools on never-annotated code. We propose a new definition of the \u201cbest\u201d inferred annotations for a program that avoids this bias, based on a systematic exploration of the design space. With this new definition, we perform the first head-to-head comparison of three extant nullability inference tools. Our evaluation showed the complementary strengths of the tools and remaining weaknesses that could be addressed in future work.<\/jats:p>","DOI":"10.1145\/3715732","type":"journal-article","created":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T11:16:02Z","timestamp":1750331762000},"page":"358-379","source":"Crossref","is-referenced-by-count":2,"title":["A New Approach to Evaluating Nullability Inference Tools"],"prefix":"10.1145","volume":"2","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-2599-7770","authenticated-orcid":false,"given":"Nima","family":"Karimipour","sequence":"first","affiliation":[{"name":"University of California at Riverside, Computer Science and Engineering, Riverside, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6170-1957","authenticated-orcid":false,"given":"Erfan","family":"Arvan","sequence":"additional","affiliation":[{"name":"New Jersey Institute of Technology, Computer Science, Newark, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3185-2340","authenticated-orcid":false,"given":"Martin","family":"Kellogg","sequence":"additional","affiliation":[{"name":"New Jersey Institute of Technology, Computer Science, Newark, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7993-302X","authenticated-orcid":false,"given":"Manu","family":"Sridharan","sequence":"additional","affiliation":[{"name":"University of California at Riverside, Computer Science and Engineering, Riverside, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,6,19]]},"reference":[{"key":"e_1_3_1_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/3338906.3338919"},{"key":"e_1_3_1_2_1","unstructured":"CF Developers. 2024. Nullness Checker. https:\/\/checkerframew0rk.0rg\/manual\/#nullness-checker. Accessed 2024-09-11."},{"key":"e_1_3_1_3_1","doi-asserted-by":"publisher","DOI":"10.1177\/001316446002000104"},{"key":"e_1_3_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/1985793.1985889"},{"key":"e_1_3_1_5_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2023.10"},{"key":"e_1_3_1_6_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2007.01.015"},{"key":"e_1_3_1_7_1","unstructured":"Google. 2024a. Android Developers: Activity documentation. https:\/\/developer.android.com\/reference\/android\/app\/Activity. Accessed: 2024-09-10."},{"key":"e_1_3_1_8_1","unstructured":"Google. 2024b. Android Developers: Activity lifecycle. https:\/\/developer.android.eom\/reference\/android\/app\/Activity#activity-lifecycle. Accessed: 2024-09-10."},{"key":"e_1_3_1_9_1","unstructured":"James Gosling Bill Joy Guy Steele Gilad Bracha Alex Buckley Daniel Smith and Gavin Bierman.. 2021. The Java Language Specification Java SE 17 Edition Section 12.5: Creation of New Class Instances. https:\/\/docs.oracle.com\/javase\/specs\/jls\/se'17\/html\/jls-12.html#jls-12.5."},{"key":"e_1_3_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/ri08792.1108798"},{"key":"e_1_3_1_11_1","unstructured":"JetBrains. 2006. Detecting probable NPE\u2019s. https:\/\/blog.jetbrains.eom\/idea\/2006\/03\/detecting-probably-npes\/. Accessed 9 September 2024."},{"key":"e_1_3_1_12_1","doi-asserted-by":"publisher","unstructured":"Christian Gram Kalhauge and Jens Palsberg.. 2019. Binar}' reduction of dependency graphs. In Proceedings of the 2019 27th ACM joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 556\u2013566. https:\/\/doi.org\/10.1145\/3338906.3338956 10.1145\/3338906.3338956.","DOI":"10.1145\/3338906.3338956"},{"key":"e_1_3_1_13_1","unstructured":"Nima Karimipour Erfan Arvan Martin Kellogg and Manu Sridharan.. 2024. Nullability Inference Tools Evaluation Experiments. https:\/\/github.com\/erfan-arvan\/nullability-inference-comparison-tools-scripts."},{"key":"e_1_3_1_14_1","doi-asserted-by":"publisher","unstructured":"Nima Karimipour Justin Pham Lazaro Clapp and Manu Sridharan.. 2023. Practical Inference of Nullability Types. In 31st ACM joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC\/FSE 2023). https:\/\/doi.org\/10.1145\/3611643.3616326 10.1145\/3611643.3616326.","DOI":"10.1145\/3611643.3616326"},{"key":"e_1_3_1_15_1","doi-asserted-by":"publisher","DOI":"10.1109\/ASE56229.2023.00186"},{"key":"e_1_3_1_16_1","doi-asserted-by":"publisher","unstructured":"Thanh Le-Cong Hong Jin Kang Truong Giang Nguyen Stefanus Agus Haryono David Lo Xuan-Bach D Le and QuyetThang Huynh.. 2022. Autopruner: transformer-based call graph pruning. In Proceedings of the 30th ACM joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 520\u2013532. https:\/\/doi.org\/10.1145\/3540250.3549175 10.1145\/3540250.3549175.","DOI":"10.1145\/3540250.3549175"},{"key":"e_1_3_1_17_1","doi-asserted-by":"publisher","unstructured":"Yi Li Aashish Yadavally Jiaxing Zhang Shaohua Wang and Tien N Nguyen.. 2023. DeMinify: Neural Variable Name Recovery and Type Inference. In joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC\/FSE). 758\u2013770. https:\/\/doi.org\/10.1145\/3611643.3616368 10.1145\/3611643.3616368.","DOI":"10.1145\/3611643.3616368"},{"key":"e_1_3_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/2644805"},{"key":"e_1_3_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/1390630.1390657"},{"key":"e_1_3_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/3022671.2983994"},{"key":"e_1_3_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/2076021.2048144"},{"key":"e_1_3_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/3643991.3644897"},{"key":"e_1_3_1_23_1","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.2104.04706"},{"key":"e_1_3_1_24_1","doi-asserted-by":"publisher","unstructured":"Amir M Mir Evaldas Lato\u0161kinas Sebastian Proksch and Georgios Gousios.. 2022. Type4Py: Practical deep similarity learning-based type inference for Python. In International Conference on Software Engineering (ICSE). 2241\u20132252. https:\/\/doi.org\/10.1145\/3510003.3510124 10.1145\/3510003.3510124.","DOI":"10.1145\/3510003.3510124"},{"key":"e_1_3_1_25_1","unstructured":"Oracle. 2015. The Java Language Specification Java SE 8 Edition Section 17.4: Memory Model. https:\/\/docs.oracle.com\/javase\/specs\/jls\/se8\/html\/jls-17.html#jls-17.4 Accessed: 2024-12-03."},{"key":"e_1_3_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/1390630.1390656"},{"key":"e_1_3_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/2660193.2660230"},{"key":"e_1_3_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/3510003.3510038"},{"key":"e_1_3_1_29_1","doi-asserted-by":"publisher","DOI":"10.1109\/ASE56229.2023.00031"},{"key":"e_1_3_1_30_1","unstructured":"Artem Pianykh Ilya Zorin and Dmitry Lyubarskiy.. 2022. Retrofitting null-safety onto Java at Meta. https:\/\/engineering.fb.com\/2022\/11\/22\/developer-tools\/meta-java-nullsafe\/."},{"key":"e_1_3_1_31_1","doi-asserted-by":"publisher","DOI":"10.5555\/509043"},{"key":"e_1_3_1_32_1","unstructured":"William Pugh et al.. 2008. FindBugs: A Program to find Bugs in Java Programs. http:\/\/findbugs.sourceforge.net\/."},{"key":"e_1_3_1_33_1","doi-asserted-by":"publisher","DOI":"10.2307\/2268870"},{"key":"e_1_3_1_34_1","doi-asserted-by":"publisher","unstructured":"Kazi Siddiqui and Martin Kellogg.. 2024. Inferring Pluggable Types with Machine Learning. https:\/\/arxiv.org\/abs\/2406.15676. https:\/\/doi.org\/10.48550\/arXiv.2406.15676 10.48550\/arXiv.2406.15676.","DOI":"10.48550\/arXiv.2406.15676"},{"key":"e_1_3_1_35_1","first-page":"1013","volume-title":"OOPSLA 2011, Object-Oriented Programming Systems, Languages, and Applications","author":"Summers Alexander J.","year":"2011","unstructured":"Alexander J. Summers and Peter Millier.. 2011. Freedom before commitment: A lightweight type system for object initialisation. In OOPSLA 2011, Object-Oriented Programming Systems, Languages, and Applications. Portland, OR, USA, 1013\u20131032. https:\/\/doi.acm.org\/10.1145\/2048066.2048142."},{"key":"e_1_3_1_36_1","unstructured":"The Daikon developers. 2024. Daikon Invariant Detector User Manual version 5.8.2 section 8.1.5: AnnotateNullable. http:\/\/plse.cs.washington.edU\/daikon\/download\/doc\/daikon.html#AnnotateNullable. Accessed 9 September 2024."},{"key":"e_1_3_1_37_1","doi-asserted-by":"publisher","unstructured":"Akshay Utture Christian Gram Kalhauge Shuyang Liu and Jens Palsberg.. 2020. NJR-1 dataset. https:\/\/zenodo.org\/records\/8015477. https:\/\/doi.org\/10.5281\/zenodo.8015477 10.5281\/zenodo.8015477.","DOI":"10.5281\/zenodo.8015477"},{"key":"e_1_3_1_38_1","doi-asserted-by":"publisher","unstructured":"Akshay Utture Shuyang Liu Christian Gram Kalhauge and Jens Palsberg.. 2022. Striking a balance: pruning false-positives from static call graphs. In Proceedings of the 44th International Conference on Software Engineering. 2043\u20132055. https:\/\/doi.org\/10.1145\/3510003.3510166 10.1145\/3510003.3510166.","DOI":"10.1145\/3510003.3510166"},{"key":"e_1_3_1_39_1","doi-asserted-by":"publisher","unstructured":"Akshay Utture and Jens Palsberg.. 2023. From Leaks to Fixes: Automated Repairs for Resource Leak Warnings. In Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 159\u2013171. https:\/\/doi.org\/10.1145\/3611643.3616267 10.1145\/3611643.3616267.","DOI":"10.1145\/3611643.3616267"},{"key":"e_1_3_1_40_1","doi-asserted-by":"publisher","unstructured":"Rijnard van Tonder and Claire Le Goues.. 2020. Tailoring programs for static analysis via program transformation. In Proceedings of the ACM\/IEEE 42nd International Conference on Software Engineering. 824\u2013834. https:\/\/doi.org\/10.1145\/3377811.3380343 10.1145\/3377811.3380343.","DOI":"10.1145\/3377811.3380343"},{"key":"e_1_3_1_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/3121137"}],"container-title":["Proceedings of the ACM on Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3715732","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3715732","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,23]],"date-time":"2026-08-23T11:05:30Z","timestamp":1787483130000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3715732"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,19]]},"references-count":41,"journal-issue":{"issue":"FSE","published-print":{"date-parts":[[2025,6,19]]}},"alternative-id":["10.1145\/3715732"],"URL":"https:\/\/doi.org\/10.1145\/3715732","relation":{},"ISSN":["2994-970X"],"issn-type":[{"value":"2994-970X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,19]]}}}