Compare commits

...

2 Commits

Author SHA1 Message Date
Sylvia van Os
4fe43bccff Catch new UncheckedIOException 2023-04-18 19:58:40 +02:00
dependabot[bot]
3732f8483b Bump org.apache.commons:commons-csv from 1.9.0 to 1.10.0
Bumps [org.apache.commons:commons-csv](https://github.com/apache/commons-csv) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/apache/commons-csv/releases)
- [Changelog](https://github.com/apache/commons-csv/blob/master/RELEASE-NOTES.txt)
- [Commits](https://github.com/apache/commons-csv/compare/rel/commons-csv-1.9.0...rel/commons-csv-1.10.0)

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-csv
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-18 16:58:12 +00:00
2 changed files with 6 additions and 5 deletions

View File

@@ -100,7 +100,7 @@ dependencies {
// Third-party
implementation 'com.journeyapps:zxing-android-embedded:4.3.0@aar'
implementation 'com.google.zxing:core:3.5.1'
implementation 'org.apache.commons:commons-csv:1.9.0'
implementation 'org.apache.commons:commons-csv:1.10.0'
implementation 'com.jaredrummler:colorpicker:1.1.0'
implementation 'com.github.invissvenska:NumberPickerPreference:1.0.4'
implementation 'net.lingala.zip4j:zip4j:2.11.5'

View File

@@ -17,6 +17,7 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StringReader;
import java.io.UncheckedIOException;
import java.math.BigDecimal;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
@@ -100,7 +101,7 @@ public class CatimaImporter implements Importer {
}
parser.close();
} catch (IllegalArgumentException | IllegalStateException e) {
} catch (UncheckedIOException e) {
throw new FormatException("Issue parsing CSV data", e);
}
}
@@ -182,7 +183,7 @@ public class CatimaImporter implements Importer {
throw new InterruptedException();
}
}
} catch (IllegalArgumentException | IllegalStateException e) {
} catch (UncheckedIOException e) {
throw new FormatException("Issue parsing CSV data", e);
} finally {
groupParser.close();
@@ -207,7 +208,7 @@ public class CatimaImporter implements Importer {
throw new InterruptedException();
}
}
} catch (IllegalArgumentException | IllegalStateException e) {
} catch (UncheckedIOException e) {
throw new FormatException("Issue parsing CSV data", e);
} finally {
cardParser.close();
@@ -232,7 +233,7 @@ public class CatimaImporter implements Importer {
throw new InterruptedException();
}
}
} catch (IllegalArgumentException | IllegalStateException e) {
} catch (UncheckedIOException e) {
throw new FormatException("Issue parsing CSV data", e);
} finally {
cardGroupParser.close();