mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-12 23:30:59 +00:00
Bug 4371: Renamed method to make clear what it is used for
This commit is contained in:
1 parent
7e3cfd9fd3
commit
76597d0abc
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -163,7 +163,7 @@ public class GPSFixImportTest {
|
||||
}
|
||||
};
|
||||
//The preferred importer will fail, however the default importer should succeed after
|
||||
importer.importFiles(Arrays.asList(new Pair<>("test.gpx", fi)), holder, new AlwaysFailingGPSFixImporter(-1));
|
||||
importer.importFilesWithPreferredImporter(Arrays.asList(new Pair<>("test.gpx", fi)), holder, new AlwaysFailingGPSFixImporter(-1));
|
||||
assertFalse(failed.get());
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -51,10 +51,10 @@ public class TrackFilesImporter {
|
||||
preferredImporter = serviceFinderFactory.createServiceFinder(GPSFixImporter.class)
|
||||
.findService(prefImporterType);
|
||||
}
|
||||
importFiles(files, jsonResult, preferredImporter);
|
||||
importFilesWithPreferredImporter(files, jsonResult, preferredImporter);
|
||||
}
|
||||
|
||||
void importFiles(Iterable<Pair<String, FileItem>> files, ImportResultDTO jsonResult,
|
||||
void importFilesWithPreferredImporter(Iterable<Pair<String, FileItem>> files, ImportResultDTO jsonResult,
|
||||
GPSFixImporter preferredImporter) throws IOException {
|
||||
for (Pair<String, FileItem> pair : files) {
|
||||
final String fileName = pair.getA();
|
||||
|
||||
Reference in new issue
Block a user