private boolean removeDependant ( BuildConfiguration dependant ) { boolean result = dependants . remove ( dependant ) ; if ( dependant . getDependencies ( ) . contains ( this ) ) { dependant . removeDependency ( this ) ; } return result ; }
This method is private because a dependant should never be removed externally . Instead the dependency relation should be set up using the removeDependency method