• DocumentCode
    2111658
  • Title

    How Fields are Used in Java: An Empirical Study

  • Author

    Tempero, Ewan

  • Author_Institution
    Dept. of Comput. Sci., Univ. of Auckland, Auckland
  • fYear
    2009
  • fDate
    14-17 April 2009
  • Firstpage
    91
  • Lastpage
    100
  • 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;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering Conference, 2009. ASWEC '09. Australian
  • Conference_Location
    Gold Coast, QLD
  • ISSN
    1530-0803
  • Print_ISBN
    978-0-7695-3599-9
  • Type

    conf

  • DOI
    10.1109/ASWEC.2009.19
  • Filename
    5076631