Understanding and addressing exhibitionism in Java empirical research about method accessibility
Author
dc.contributor.author
Vidal, Santiago A.
Author
dc.contributor.author
Bergel, Alexandre
Author
dc.contributor.author
Marcos, Claudia
Author
dc.contributor.author
Díaz Pace, J. Andrés
Admission date
dc.date.accessioned
2016-12-14T20:06:50Z
Available date
dc.date.available
2016-12-14T20:06:50Z
Publication date
dc.date.issued
2016-03
Cita de ítem
dc.identifier.citation
Empir Software Eng (2016) 21:483–516
es_ES
Identifier
dc.identifier.issn
1573-7616
Identifier
dc.identifier.other
10.1007/s10664-015-9365-9
Identifier
dc.identifier.uri
https://repositorio.uchile.cl/handle/2250/141895
Abstract
dc.description.abstract
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.
es_ES
Patrocinador
dc.description.sponsorship
PIP Project (CONICET) - Argentina 112-201101-00078