sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [sling-org-apache-sling-feature-analyser] 28/28: [Feature Model] Remove BundleDescriptorImpl ctor that was only used by test
Date Fri, 27 Apr 2018 09:53:44 GMT
This is an automated email from the ASF dual-hosted git repository.

davidb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-analyser.git

commit c6683bae0c3ff00dab05aa01e29a5853a602206d
Author: David Bosschaert <david.bosschaert@gmail.com>
AuthorDate: Thu Apr 26 14:27:25 2018 +0100

    [Feature Model] Remove BundleDescriptorImpl ctor that was only used by test
---
 .../feature/scanner/impl/BundleDescriptorImpl.java | 22 +---------------------
 1 file changed, 1 insertion(+), 21 deletions(-)

diff --git a/src/main/java/org/apache/sling/feature/scanner/impl/BundleDescriptorImpl.java
b/src/main/java/org/apache/sling/feature/scanner/impl/BundleDescriptorImpl.java
index d93b89c..d933060 100644
--- a/src/main/java/org/apache/sling/feature/scanner/impl/BundleDescriptorImpl.java
+++ b/src/main/java/org/apache/sling/feature/scanner/impl/BundleDescriptorImpl.java
@@ -21,7 +21,6 @@ import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.List;
-import java.util.Set;
 import java.util.jar.JarFile;
 import java.util.jar.Manifest;
 import java.util.stream.Collectors;
@@ -34,8 +33,6 @@ import org.apache.sling.feature.Artifact;
 import org.apache.sling.feature.scanner.BundleDescriptor;
 import org.apache.sling.feature.scanner.PackageInfo;
 import org.osgi.framework.Constants;
-import org.osgi.resource.Capability;
-import org.osgi.resource.Requirement;
 
 /**
  * Information about a bundle
@@ -77,23 +74,6 @@ public class BundleDescriptorImpl
         this.lock();
     }
 
-    public BundleDescriptorImpl(final Artifact artifact,
-            final Set<PackageInfo> pcks,
-            final Set<Requirement> reqs,
-            final Set<Capability> caps) throws IOException {
-        this.artifact = artifact;
-        this.artifactFile = null;
-        this.startLevel = 0;
-
-        this.symbolicName = Constants.SYSTEM_BUNDLE_SYMBOLICNAME;
-        this.bundleVersion = artifact.getId().getOSGiVersion().toString();
-        this.getExportedPackages().addAll(pcks);
-        this.getRequirements().addAll(reqs);
-        this.getCapabilities().addAll(caps);
-        this.manifest = null;
-        this.lock();
-    }
-
     /**
      * Get the bundle symbolic name.
      * @return The bundle symbolic name
@@ -211,4 +191,4 @@ public class BundleDescriptorImpl
     public static List<PackageInfo> extractDynamicImportedPackages(final Manifest m)
{
         return extractPackages(m, Constants.DYNAMICIMPORT_PACKAGE, null, false);
     }
-}
\ No newline at end of file
+}

-- 
To stop receiving notification emails like this one, please contact
davidb@apache.org.

Mime
View raw message