An Analysis about Accessibility Excessiveness of Revision Histories in Java Programs

  • 石居達也
    Graduate School of Information Science and Technology, Osaka University
  • 小堀一雄
    Graduate School of Information Science and Technology, Osaka University
  • 松下誠
    Graduate School of Information Science and Technology, Osaka University
  • 井上克郎
    Graduate School of Information Science and Technology, Osaka University

Bibliographic Information

Other Title
  • アクセス修飾子過剰性の変遷に着目したJavaプログラム部品の分析

Search this article

Description

Developers can declare access modifiers for fields and methods in Java, and this lets them limit access scopes for fields and methods. However, existing software has a lot of fields and methods that have access modifiers whose access scopes are larger than actual ones. On the other hand, it is not clear how often these access modifiers are modified. In this study, we analyzes how often developers modify excessive access modifiers in software update. We get data of analysis subject from existing seven Java projects by using a existing tool that detects fields and methods with excessive access modifiers, by extension. Moreover, we labeled fields and methods as three states by the combination of declared and actual access scope. Then, we also labeled state transitions of fields and methods between old and new versions as six states by their behaviors. As a result, the tendency was confirmed that most of the excessive access modifiers were leaved and not touched. By contrast, some kind of excessive access modifier was confirmed that they were modified in all of intended Java projects.

Journal

Details 詳細情報について

  • CRID
    1573950402685228800
  • NII Article ID
    110009579841
  • NII Book ID
    AA12149313
  • ISSN
    09196072
  • Text Lang
    ja
  • Data Source
    • CiNii Articles

Report a problem

Back to top