Recommending method invocation context changes
Beat Fluri, Jonas Zuberbühler, Harald C. Gall · 2008
Our investigations of bug fixes in Eclipse showed that a significant amount of bugs were fixed by moving invocations of certain methods into the then or else-part of if-statements with similar conditions. Based on this finding, we leverage such context changes applied in the past to support developers while adding invocations of the same method. In this paper we present ChangeCommander, an Eclipse plugin that implements our approach to recommend insertions of particular if-statements before calling a method. Change-Commander presents context change suggestions by high-lighting affected method invocations in the source code and provides automated code adaptation support.