summaryrefslogtreecommitdiff
path: root/app/src/androidTest/java/de/test/antennapod/util
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2020-06-24 22:37:41 +0200
committerByteHamster <info@bytehamster.com>2020-06-24 22:37:41 +0200
commit64b9fcd18a0146048b92d2c93f4ed6174a96db36 (patch)
tree89388bfe7a658964eb482cec930d78300c98ff31 /app/src/androidTest/java/de/test/antennapod/util
parent7612f3c5edc127e36392cae99119d776b481efb3 (diff)
downloadAntennaPod-64b9fcd18a0146048b92d2c93f4ed6174a96db36.zip
Trimming Atom content (except GUID)
Diffstat (limited to 'app/src/androidTest/java/de/test/antennapod/util')
-rw-r--r--app/src/androidTest/java/de/test/antennapod/util/syndication/feedgenerator/Rss2Generator.java (renamed from app/src/androidTest/java/de/test/antennapod/util/syndication/feedgenerator/RSS2Generator.java)12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/util/syndication/feedgenerator/RSS2Generator.java b/app/src/androidTest/java/de/test/antennapod/util/syndication/feedgenerator/Rss2Generator.java
index ee664bfdc..a9a6f91e7 100644
--- a/app/src/androidTest/java/de/test/antennapod/util/syndication/feedgenerator/RSS2Generator.java
+++ b/app/src/androidTest/java/de/test/antennapod/util/syndication/feedgenerator/Rss2Generator.java
@@ -14,15 +14,19 @@ import de.danoeh.antennapod.core.util.DateUtils;
/**
* Creates RSS 2.0 feeds. See FeedGenerator for more information.
*/
-public class RSS2Generator implements FeedGenerator {
+public class Rss2Generator implements FeedGenerator {
public static final long FEATURE_WRITE_GUID = 1;
@Override
public void writeFeed(Feed feed, OutputStream outputStream, String encoding, long flags) throws IOException {
- if (feed == null) throw new IllegalArgumentException("feed = null");
- if (outputStream == null) throw new IllegalArgumentException("outputStream = null");
- if (encoding == null) throw new IllegalArgumentException("encoding = null");
+ if (feed == null) {
+ throw new IllegalArgumentException("feed = null");
+ } else if (outputStream == null) {
+ throw new IllegalArgumentException("outputStream = null");
+ } else if (encoding == null) {
+ throw new IllegalArgumentException("encoding = null");
+ }
XmlSerializer xml = Xml.newSerializer();
xml.setOutput(outputStream, encoding);