boolean alreadyLoadedLibrary ( String aLibraryName , Long aMajorVersion ) { boolean retval = false ; Set < Long > foundVersions = mLoadedLibraries . get ( aLibraryName ) ; if ( foundVersions != null ) { // we found at least some versions if ( aMajorVersion == null || foundVersions . contains ( aMajorVersion ) ) { retval = true ; } else { log . warn ( "Attempting load of {}, version {}, but already loaded verions: {}." + " We will attempt to load the specified version but behavior is undefined" , new Object [ ] { aLibraryName , aMajorVersion , foundVersions . toArray ( ) } ) ; } } return retval ; }
Checks our cache to see if we ve already loaded this library .