Fixed bug in loader which caused it to load only a single csv file.

This commit is contained in:
Kevin Ruland 2012-04-12 05:10:43 +00:00
parent 2e66939727
commit 1ce5e0db9c

View File

@ -27,9 +27,7 @@ public class ComponentPresetDatabase extends Database<ComponentPreset> implement
List<ComponentPreset> returnval = new ArrayList<ComponentPreset>();
InputStream is = ComponentPresetDao.class.getResourceAsStream("/datafiles/bodytubepresets.csv");
PresetCSVReader parser = new PresetCSVReader(is);
PresetCSVReader parser = new PresetCSVReader(stream);
List<TypedPropertyMap> list = parser.parse();
for( TypedPropertyMap o : list ) {
try {