private static String getVersion(Clause clause) { String v = clause.getAttribute(Constants.VERSION_ATTRIBUTE); if (v == null) { v = clause.getAttribute(Constants.PACKAGE_SPECIFICATION_VERSION); } if (v == null) { v = clause.getAttribute(Constants.BUNDLE_VERSION_ATTRIBUTE); } return VersionCleaner.clean(v); }
private static String getVersion(Headers headers) { String v = headers.getHeader(Constants.BUNDLE_VERSION); return VersionCleaner.clean(v); }