minor: move method closer to its caller
@@ -46,11 +46,6 @@ public class BundleLoader {
this.osgi = osgi;
}
- private List<Bundle> obtainBundles(FileReference reference, FileAcquirer fileAcquirer) throws InterruptedException {
- File file = fileAcquirer.waitFor(reference, 7, TimeUnit.DAYS);
- return osgi.install(file.getAbsolutePath());
- }
-
private void install(List<FileReference> references) {
Set<FileReference> bundlesToInstall = new HashSet<>(references);
@@ -121,6 +116,11 @@ public class BundleLoader {
}
}
+ private List<Bundle> obtainBundles(FileReference reference, FileAcquirer fileAcquirer) throws InterruptedException {
+ File file = fileAcquirer.waitFor(reference, 7, TimeUnit.DAYS);
+ return osgi.install(file.getAbsolutePath());
+ }
+
/**
* Resolves and starts (calls the Bundles BundleActivator) all bundles. Bundle resolution must take place
* after all bundles are installed to ensure that the framework can resolve dependencies between bundles.
