Repository function ( @ NotNull RepositoryCache . FileKey arg0 ) { CachedRepository loc0 = myRepositories . get ( arg0 ) ; if ( loc0 != null ) { Repository loc1 = loc0 . getRepository ( ) ; loc0 . inc ( ) ; return loc1 ; } return null ; }
returns a repository for the given key or null if repository is not found in cache . if repository is found its opencounter is incremented . when the caller is done with repository it must call #release method . concode_field_sep Repository myRepository concode_elem_sep AtomicInteger myOpenCounter concode_elem_sep Map<RepositoryCache.FileKey,CachedRepository> myRepositories concode_field_sep Repository add concode_elem_sep int dec concode_elem_sep void release concode_elem_sep Repository getRepository concode_elem_sep void inc