paulrutter commented on PR #616:
URL: https://github.com/apache/felix-dev/pull/616#issuecomment-7344659349
@jczpqf Yes, please. You can avoid the re-indent by doing the “already
imported by another thread” check before the existing if and leaving that block
as it is:
```
BundleRevision provider = null;
// Another thread may have just completed the dynamic import of this
// package (FELIX-6879), in which case isAllowedDynamicImport() below
// returns false. Return the existing provider instead of failing.
if (revision.getWiring() != null)
{
provider = ((BundleWiringImpl) revision.getWiring())
.getImportedPackageSource(pkgName);
if (provider != null)
{
return provider;
}
}
// We cannot dynamically import if the revision is not already resolved
// ... existing code unchanged ...
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]