Title :
How Fields are Used in Java: An Empirical Study
Author_Institution :
Dept. of Comput. Sci., Univ. of Auckland, Auckland
Abstract :
The information hiding principle is generally accepted as one that if followed leads to higher quality software than if it is not followed. To follow the information hiding principle in object-oriented designs the advice is to avoid non-private fields. There is, however, little empirical evidence as to whether or not this advice is being followed. This paper presents the results of an empirical study of 100 open-source Java applications to determine to what degree non-private fields are declared, and to what extend they are used. The study indicates that it is not uncommon (albeit not that terribly common) to declare non-private fields, but then not take advantage of that access.
Keywords :
Java; data encapsulation; software quality; Java; information hiding principle; object-oriented designs; open-source Java applications; software quality; Computer languages; Computer science; Information analysis; Java; Open source software; Programming profession; Quality control; Software engineering; Software quality; Voting; code analysis; empirical study; information hiding; non-private fields;
Conference_Titel :
Software Engineering Conference, 2009. ASWEC '09. Australian
Conference_Location :
Gold Coast, QLD
Print_ISBN :
978-0-7695-3599-9
DOI :
10.1109/ASWEC.2009.19