Towards improving interface modularity in legacy Java software through automated refactoring

Raffi Khatchadourian, Olivia Moore, Hidehiko Masuhara
2016 Companion Proceedings of the 15th International Conference on Modularity - MODULARITY Companion 2016  
The skeletal implementation pattern is a software design pattern consisting of defining an abstract class that provides a partial interface implementation. However, since Java allows only single class inheritance, if implementers decide to extend a skeletal implementation, they will not be allowed to extend any other class. Also, discovering the skeletal implementation may require a global analysis. Java 8 enhanced interfaces alleviate these problems by allowing interfaces to contain (default)
more » ... ethod implementations, which implementers inherit. Java classes are then free to extend a different class, and a separate abstract class is no longer needed; developers considering implementing an interface need only examine the interface itself. We argue that both these benefits improve software modularity, and discuss our ongoing work in developing an automated refactoring tool that would assist developers in taking advantage of the enhanced interface feature for their legacy Java software.
doi:10.1145/2892664.2892681 dblp:conf/aosd/KhatchadourianM16 fatcat:s3bdv5d3nfff5gcjvklsux5gtm