INVESTIGADORES
DIAZ PACE Jorge Andres
artículos
Título:
Understanding and Addressing Exhibitionism in Java: Empirical Research about Method Accessibility
Autor/es:
SANTIAGO A. VIDAL; ALEXANDRE BERGEL; CLAUDIA MARCOS; JORGE ANDRES DIAZ PACE
Revista:
EMPIRICAL SOFTWARE ENGINEERING
Editorial:
SPRINGER
Referencias:
Lugar: Berlin; Año: 2015
ISSN:
1382-3256
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 dened 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 identfiied 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.