首页> 外文期刊>Empirical Software Engineering >Understanding and addressing exhibitionism in Java empirical research about method accessibility
【24h】

Understanding and addressing exhibitionism in Java empirical research about method accessibility

机译:在Java中关于方法可访问性的经验研究中理解和解决暴露主义

获取原文
获取原文并翻译 | 示例

摘要

Information hiding is a positive consequence of properly defining component interfaces. Unfortunately, determining what should constitute a public interface remains difficult. We have analyzed over 3.6 million lines of Java open-source code and found that on the average, at least 20 % of defined methods are over-exposed, thus threatening public interfaces to unnecessary exposure. Such over-exposed methods may have their accessibility reduced to exactly reflect the method usage. We have identified three patterns in the source code to identify over-exposed methods. We also propose an Eclipse plugin to guide practitioners in identifying over-exposed methods and refactoring their applications. Our plugin has been successfully used to refactor a non-trivial application.
机译:信息隐藏是正确定义组件接口的积极结果。不幸的是,确定应该构成公共接口的内容仍然很困难。我们分析了超过360万行Java开源代码,发现平均而言,至少20%的定义方法被过度曝光,从而威胁到公共接口不必要的暴露。此类曝光过度的方法可能会降低其可访问性,以准确反映该方法的使用。我们已经在源代码中确定了三种模式来标识过度曝光的方法。我们还建议使用Eclipse插件来指导从业人员识别过度暴露的方法并重构其应用程序。我们的插件已成功用于重构非平凡的应用程序。

著录项

  • 来源
    《Empirical Software Engineering》 |2016年第2期|483-516|共34页
  • 作者单位

    UNICEN, ISISTAN, Buenos Aires, DF, Argentina|Consejo Nacl Invest Cient & Tecn, Natl Council Sci & Technol Res Argentina, ISISTAN Inst, Tandil, Argentina;

    Univ Chile, Dept Comp Sci, Pleiad Lab, Santiago, Chile;

    UNICEN, ISISTAN, Buenos Aires, DF, Argentina|CIC, Buenos Aires, DF, Argentina;

    UNICEN, ISISTAN, Buenos Aires, DF, Argentina|Consejo Nacl Invest Cient & Tecn, Tandil, Argentina;

  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

    Method accessibility; Information hiding;

    机译:方法可访问性;信息隐藏;

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号