mirror of
https://github.com/openstreetmap/osmosis.git
synced 2026-01-14 00:36:36 +00:00
Eliminate deprecate method use in tagtransform DataSourceCSV
This commit is contained in:
@ -43,10 +43,8 @@ public class DataSourceCSV implements DataSource {
|
|||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
try(InputStreamReader fis = new InputStreamReader(new FileInputStream(new File(parentDirectory, file)))) {
|
try(InputStreamReader fis = new InputStreamReader(new FileInputStream(new File(parentDirectory, file)))) {
|
||||||
CSVRecord fallbackRecord = CSVParser.parse(attributes.getNamedItem("fallback").getTextContent(), CSVFormat.newFormat(',')
|
CSVFormat format = CSVFormat.Builder.create().setDelimiter(',').setQuote('"').setQuoteMode(QuoteMode.MINIMAL).build();
|
||||||
.withDelimiter(',')
|
CSVRecord fallbackRecord = CSVParser.parse(attributes.getNamedItem("fallback").getTextContent(), format)
|
||||||
.withQuote('"')
|
|
||||||
.withQuoteMode(QuoteMode.MINIMAL))
|
|
||||||
.iterator().next();
|
.iterator().next();
|
||||||
this.fallback = new String[fallbackRecord.size()];
|
this.fallback = new String[fallbackRecord.size()];
|
||||||
for(int i = 0; i < fallback.length; i++) {
|
for(int i = 0; i < fallback.length; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user