Source:
public void verify() throws Exception { verifyHeaders(); verifyDirectives(Constants.EXPORT_PACKAGE, "uses:|mandatory:|include:|exclude:|" + IMPORT_DIRECTIVE, PACKAGEPATTERN, "package"); verifyDirectives(Constants.IMPORT_PACKAGE, "resolution:", PACKAGEPATTERN, "package"); verifyDirectives(Constants.REQUIRE_BUNDLE, "visibility:|resolution:", SYMBOLICNAME, "bsn"); verifyDirectives(Constants.FRAGMENT_HOST, "extension:", SYMBOLICNAME, "bsn"); verifyDirectives(Constants.PROVIDE_CAPABILITY, "effective:|register:|uses:", null, null); verifyDirectives(Constants.REQUIRE_CAPABILITY, "effective:|resolution:|filter:|cardinality:", null, null); verifyDirectives(Constants.BUNDLE_SYMBOLICNAME, "singleton:|fragment-attachment:|mandatory:", SYMBOLICNAME, "bsn"); verifyManifestFirst(); verifyActivator(); verifyActivationPolicy(); verifyComponent(); verifyNative(); verifyImports(); verifyExports(); verifyUnresolvedReferences(); verifySymbolicName(); verifyListHeader(Constants.BUNDLE_REQUIREDEXECUTIONENVIRONMENT, EENAME, false); verifyHeader(Constants.BUNDLE_MANIFESTVERSION, BUNDLEMANIFESTVERSION, false); verifyHeader(Constants.BUNDLE_VERSION, VERSION, true); verifyListHeader(Constants.BUNDLE_CLASSPATH, FILE, false); verifyDynamicImportPackage(); verifyBundleClasspath(); verifyUses(); if (usesRequire) { if (!getErrors().isEmpty()) { getWarnings().add(0, "Bundle uses Require Bundle, this can generate false errors because then not enough information is available without the required bundles"); } } verifyRequirements(); verifyCapabilities(); verifyMetaPersistence(); verifyPathNames(); doVerifierPlugins(); }

Target:
public void verify() throws Exception { verifyHeaders(); verifyDirectives(Constants.EXPORT_PACKAGE, "uses:|mandatory:|include:|exclude:|" + IMPORT_DIRECTIVE, PACKAGEPATTERN, "package"); verifyDirectives(Constants.IMPORT_PACKAGE, "resolution:", PACKAGEPATTERN, "package"); verifyDirectives(Constants.REQUIRE_BUNDLE, "visibility:|resolution:", SYMBOLICNAME, "bsn"); verifyDirectives(Constants.FRAGMENT_HOST, "extension:", SYMBOLICNAME, "bsn"); verifyDirectives(Constants.PROVIDE_CAPABILITY, namespace -> "osgi.serviceloader".equals(namespace) ? "effective:|uses:|register:" : "effective:|uses:", null, null); verifyDirectives(Constants.REQUIRE_CAPABILITY, "effective:|resolution:|filter:|cardinality:", null, null); verifyDirectives(Constants.BUNDLE_SYMBOLICNAME, "singleton:|fragment-attachment:|mandatory:", SYMBOLICNAME, "bsn"); verifyManifestFirst(); verifyActivator(); verifyActivationPolicy(); verifyComponent(); verifyNative(); verifyImports(); verifyExports(); verifyUnresolvedReferences(); verifySymbolicName(); verifyListHeader(Constants.BUNDLE_REQUIREDEXECUTIONENVIRONMENT, EENAME, false); verifyHeader(Constants.BUNDLE_MANIFESTVERSION, BUNDLEMANIFESTVERSION, false); verifyHeader(Constants.BUNDLE_VERSION, VERSION, true); verifyListHeader(Constants.BUNDLE_CLASSPATH, FILE, false); verifyDynamicImportPackage(); verifyBundleClasspath(); verifyUses(); if (usesRequire) { if (!getErrors().isEmpty()) { getWarnings().add(0, "Bundle uses Require Bundle, this can generate false errors because then not enough information is available without the required bundles"); } } verifyRequirements(); verifyCapabilities(); verifyMetaPersistence(); verifyPathNames(); doVerifierPlugins(); }