X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.osgi.boot%2Fsrc%2Forg%2Fargeo%2Fosgi%2Fboot%2FDistributionBundle.java;h=8dd4d812dca47071d36f6bb3cb43fe32f1078f15;hb=32f178a2449158b551387198a816c2e10a7cc996;hp=340472558f15d9125f9537be4dc9e98526287672;hpb=807ccba419e96a18f7af67a66f986ae4c91c03d9;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.osgi.boot/src/org/argeo/osgi/boot/DistributionBundle.java b/org.argeo.osgi.boot/src/org/argeo/osgi/boot/DistributionBundle.java index 340472558..8dd4d812d 100644 --- a/org.argeo.osgi.boot/src/org/argeo/osgi/boot/DistributionBundle.java +++ b/org.argeo.osgi.boot/src/org/argeo/osgi/boot/DistributionBundle.java @@ -36,7 +36,6 @@ import org.osgi.framework.Constants; * expected that it is. The root of the repository is computed based on the file * name of the URL and of the content of the index. */ -@SuppressWarnings({ "rawtypes", "unchecked" }) public class DistributionBundle { private final static String INDEX_FILE_NAME = "modularDistribution.csv"; @@ -51,7 +50,7 @@ public class DistributionBundle { /** can be null */ private String relativeUrl; - private List/* */artifacts; + private List artifacts; private String separator = ","; @@ -126,8 +125,8 @@ public class DistributionBundle { } } - protected List/* */listArtifacts(InputStream in) { - List osgiArtifacts = new ArrayList(); + protected List listArtifacts(InputStream in) { + List osgiArtifacts = new ArrayList(); BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader(in)); @@ -156,17 +155,17 @@ public class DistributionBundle { } /** - * List full URLs of the bunmdles, based on base URL, usable directly for + * List full URLs of the bundles, based on base URL, usable directly for * download. */ - public List/* */listUrls() { + public List listUrls() { if (baseUrl == null) throw new OsgiBootException("Base URL is not set"); if (artifacts == null) throw new OsgiBootException("Artifact list not initialized"); - List/* */urls = new ArrayList(); + List urls = new ArrayList(); for (int i = 0; i < artifacts.size(); i++) { OsgiArtifact osgiArtifact = (OsgiArtifact) artifacts.get(i); urls.add(baseUrl + osgiArtifact.getRelativeUrl());