Paper record

W2082160726

Towards automatically generating summary comments for Java methods

Giriprasad Sridhara, Emily Hill, Divya Muppaneni, Lori Pollock, K. Vijay‐Shanker

Year
2010
Venue
IEEE/ACM International Conference on Automated Software Engineering (ASE)
References
20
Cited by
607

Details and counts from OpenAlex.

Abstract

Studies have shown that good comments can help programmers quickly understand what a method does, aiding program comprehension and software maintenance. Unfortunately, few software projects adequately comment the code. One way to overcome the lack of human-written summary comments, and guard against obsolete comments, is to automatically generate them. In this paper, we present a novel technique to automatically generate descriptive summary comments for Java methods. Given the signature and body of a method, our automatic comment generator identifies the content for the summary and generates natural language text that summarizes the method's overall actions. According to programmers who judged our generated comments, the summaries are accurate, do not miss important content, and are reasonably concise.