summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/error
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2021-03-27 19:40:53 +0100
committerByteHamster <info@bytehamster.com>2021-03-27 20:44:35 +0100
commit71184ee5d4bc3a5b9e83625b9ee40297a6e3dd21 (patch)
tree2baf4dba3b2e179b09e29f4f72b0f92cf9d4af3e /app/src/main/java/de/danoeh/antennapod/error
parent3946f986d723f8579a33140bbe3c0d95182ecab1 (diff)
downloadAntennaPod-71184ee5d4bc3a5b9e83625b9ee40297a6e3dd21.zip
Fixed SpotBugs violations, so that at least the most severe checks pass
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/error')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/error/CrashReportWriter.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/error/CrashReportWriter.java b/app/src/main/java/de/danoeh/antennapod/error/CrashReportWriter.java
index dc62863f9..23c8ffdd5 100644
--- a/app/src/main/java/de/danoeh/antennapod/error/CrashReportWriter.java
+++ b/app/src/main/java/de/danoeh/antennapod/error/CrashReportWriter.java
@@ -7,7 +7,6 @@ import de.danoeh.antennapod.BuildConfig;
import org.apache.commons.io.IOUtils;
import java.io.File;
-import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
@@ -40,7 +39,7 @@ public class CrashReportWriter implements Thread.UncaughtExceptionHandler {
File path = getFile();
PrintWriter out = null;
try {
- out = new PrintWriter(new FileWriter(path));
+ out = new PrintWriter(path, "UTF-8");
out.println("## Crash info");
out.println("Time: " + new SimpleDateFormat("dd-MM-yyyy HH:mm:ss", Locale.getDefault()).format(new Date()));
out.println("AntennaPod version: " + BuildConfig.VERSION_NAME);