private void getAllDependents ( Set < PathEntry > result , String name ) { Set < String > depNames = dependenctRelativePaths . get ( name ) ; if ( depNames == null ) { return ; } for ( String dep : depNames ) { PathEntry entry = pathEntries . get ( dep ) ; if ( entry != null ) { result . add ( entry ) ; getAllDependents ( result , dep ) ; } } }
Call with pathEntries lock taken