Artículo
Understanding and addressing exhibitionism in Java empirical research about method accessibility
Fecha de publicación:
04/2016
Editorial:
Springer
Revista:
Empirical Software Engineering
ISSN:
1382-3256
e-ISSN:
1573-7616
Idioma:
Inglés
Tipo de recurso:
Artículo publicado
Clasificación temática:
Resumen
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.
Palabras clave:
Information Hiding
,
Method Accessibility
Archivos asociados
Licencia
Identificadores
Colecciones
Articulos(ISISTAN)
Articulos de INSTITUTO SUPERIOR DE INGENIERIA DEL SOFTWARE
Articulos de INSTITUTO SUPERIOR DE INGENIERIA DEL SOFTWARE
Citación
Vidal, Santiago Agustín; Bergel, Alexandre; Marcos, Claudia Andrea; Diaz Pace, Jorge Andres; Understanding and addressing exhibitionism in Java empirical research about method accessibility; Springer; Empirical Software Engineering; 21; 2; 4-2016; 483-516
Compartir
Altmétricas