* 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";
/** can be null */
private String relativeUrl;
- private List/* <OsgiArtifact> */artifacts;
+ private List<OsgiArtifact> artifacts;
private String separator = ",";
}
}
- protected List/* <OsgiArtifact> */listArtifacts(InputStream in) {
- List osgiArtifacts = new ArrayList();
+ protected List<OsgiArtifact> listArtifacts(InputStream in) {
+ List<OsgiArtifact> osgiArtifacts = new ArrayList<OsgiArtifact>();
BufferedReader reader = null;
try {
reader = new BufferedReader(new InputStreamReader(in));
if (artifacts == null)
throw new OsgiBootException("Artifact list not initialized");
- List/* <String> */urls = new ArrayList();
+ List<String> urls = new ArrayList<String>();
for (int i = 0; i < artifacts.size(); i++) {
OsgiArtifact osgiArtifact = (OsgiArtifact) artifacts.get(i);
urls.add(baseUrl + osgiArtifact.getRelativeUrl());