private PackageSource findImportedSource(String pkgName, Collection<BundleLoader> visited) { Map<String, PackageSource> imports = getImportedSources(visited); synchronized (imports) { return imports.get(pkgName); } }
private PackageSource findImportedSource(String pkgName, KeyedHashSet visited) { KeyedHashSet imports = getImportedSources(visited); if (imports == null) return null; synchronized (imports) { return (PackageSource) imports.getByKey(pkgName); } }
private PackageSource findImportedSource(String pkgName, Collection<BundleLoader> visited) { KeyedHashSet imports = getImportedSources(visited); synchronized (imports) { return (PackageSource) imports.getByKey(pkgName); } }
private PackageSource findImportedSource(String pkgName, Collection<BundleLoader> visited) { KeyedHashSet imports = getImportedSources(visited); synchronized (imports) { return (PackageSource) imports.getByKey(pkgName); } }
private PackageSource findImportedSource(String pkgName, Collection<BundleLoader> visited) { KeyedHashSet imports = getImportedSources(visited); synchronized (imports) { return (PackageSource) imports.getByKey(pkgName); } }
private PackageSource findImportedSource(String pkgName, Collection<BundleLoader> visited) { KeyedHashSet imports = getImportedSources(visited); synchronized (imports) { return (PackageSource) imports.getByKey(pkgName); } }
private PackageSource findImportedSource(String pkgName, KeyedHashSet visited) { KeyedHashSet imports = getImportedSources(visited); if (imports == null) return null; synchronized (imports) { return (PackageSource) imports.getByKey(pkgName); } }
private PackageSource findImportedSource(String pkgName, Collection<BundleLoader> visited) { KeyedHashSet imports = getImportedSources(visited); synchronized (imports) { return (PackageSource) imports.getByKey(pkgName); } }
private void populateLoaders(AbstractBundle[] bundles) { // populate all the loaders with their package source information // this is needed to fix bug 259903. for (int i = 0; i < bundles.length; i++) { // only need to do this for host bundles which are resolved if (bundles[i] instanceof BundleHost && bundles[i].isResolved()) { // getting the BundleLoader object populates the require-bundle sources BundleLoader loader = ((BundleHost) bundles[i]).getBundleLoader(); if (loader != null) // need to explicitly get the import package sources loader.getImportedSources(null); } } }
private void populateLoaders(AbstractBundle[] bundles) { // populate all the loaders with their package source information // this is needed to fix bug 259903. for (int i = 0; i < bundles.length; i++) { // only need to do this for host bundles which are resolved if (bundles[i] instanceof BundleHost && bundles[i].isResolved()) { // getting the BundleLoader object populates the require-bundle sources BundleLoader loader = ((BundleHost) bundles[i]).getBundleLoader(); if (loader != null) // need to explicitly get the import package sources loader.getImportedSources(null); } } }
List<String> packages = new ArrayList<>(); Map<String, PackageSource> importSources = getImportedSources(null); Collection<PackageSource> imports; synchronized (importSources) {
List<String> packages = new ArrayList<String>(); KeyedHashSet importSources = getImportedSources(null); KeyedElement[] imports; synchronized (importSources) {
List<String> packages = new ArrayList<String>(); KeyedHashSet importSources = getImportedSources(null); KeyedElement[] imports; synchronized (importSources) {
List<String> packages = new ArrayList<String>(); KeyedHashSet importSources = getImportedSources(null); KeyedElement[] imports; synchronized (importSources) {
List<String> packages = new ArrayList<>(); KeyedHashSet importSources = getImportedSources(null); KeyedElement[] imports; synchronized (importSources) {
List<String> packages = new ArrayList<String>(); KeyedHashSet importSources = getImportedSources(null); KeyedElement[] imports; synchronized (importSources) {
List<String> packages = new ArrayList<String>(); KeyedHashSet importSources = getImportedSources(null); if (importSources != null) { KeyedElement[] imports = importSources.elements();
List<String> packages = new ArrayList<String>(); KeyedHashSet importSources = getImportedSources(null); if (importSources != null) { KeyedElement[] imports = importSources.elements();