summaryrefslogtreecommitdiff
path: root/parser/feed/src/main/java
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2024-03-04 23:01:24 +0100
committerByteHamster <info@bytehamster.com>2024-03-04 23:09:59 +0100
commitcae848b5050ef2b7acd5c000e8def62f189b3632 (patch)
tree9ff6393077c29977ba19478643b05c0661e240cd /parser/feed/src/main/java
parent6c0f9eec6232c96e5f2f59c81db758c94999f164 (diff)
downloadAntennaPod-cae848b5050ef2b7acd5c000e8def62f189b3632.zip
Fix indentation in last 8 files
Diffstat (limited to 'parser/feed/src/main/java')
-rw-r--r--parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/namespace/Atom.java22
-rw-r--r--parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/namespace/DublinCore.java4
2 files changed, 13 insertions, 13 deletions
diff --git a/parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/namespace/Atom.java b/parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/namespace/Atom.java
index a79556c2c..863f65d48 100644
--- a/parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/namespace/Atom.java
+++ b/parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/namespace/Atom.java
@@ -108,9 +108,9 @@ public class Atom extends Namespace {
* feed-object has no link yet b) type of link is
* LINK_TYPE_HTML or LINK_TYPE_XHTML
*/
- if (state.getFeed() != null &&
- ((type == null && state.getFeed().getLink() == null) ||
- (LINK_TYPE_HTML.equals(type) || LINK_TYPE_XHTML.equals(type)))) {
+ if (state.getFeed() != null
+ && ((type == null && state.getFeed().getLink() == null)
+ || (LINK_TYPE_HTML.equals(type) || LINK_TYPE_XHTML.equals(type)))) {
state.getFeed().setLink(href);
} else if (LINK_TYPE_ATOM.equals(type) || LINK_TYPE_RSS.equals(type)) {
// treat as podlove alternate feed
@@ -188,17 +188,17 @@ public class Atom extends Namespace {
} else if (ENTRY.equals(second) && state.getCurrentItem() != null) {
state.getCurrentItem().setTitle(textElement.getProcessedContent());
}
- } else if (SUBTITLE.equals(top) && FEED.equals(second) && textElement != null &&
- state.getFeed() != null) {
+ } else if (SUBTITLE.equals(top) && FEED.equals(second) && textElement != null
+ && state.getFeed() != null) {
state.getFeed().setDescription(textElement.getProcessedContent());
- } else if (CONTENT.equals(top) && ENTRY.equals(second) && textElement != null &&
- state.getCurrentItem() != null) {
+ } else if (CONTENT.equals(top) && ENTRY.equals(second) && textElement != null
+ && state.getCurrentItem() != null) {
state.getCurrentItem().setDescriptionIfLonger(textElement.getProcessedContent());
} else if (SUMMARY.equals(top) && ENTRY.equals(second) && textElement != null
&& state.getCurrentItem() != null) {
state.getCurrentItem().setDescriptionIfLonger(textElement.getProcessedContent());
- } else if (UPDATED.equals(top) && ENTRY.equals(second) && state.getCurrentItem() != null &&
- state.getCurrentItem().getPubDate() == null) {
+ } else if (UPDATED.equals(top) && ENTRY.equals(second) && state.getCurrentItem() != null
+ && state.getCurrentItem().getPubDate() == null) {
state.getCurrentItem().setPubDate(DateUtils.parseOrNullIfFuture(content));
} else if (PUBLISHED.equals(top) && ENTRY.equals(second) && state.getCurrentItem() != null) {
state.getCurrentItem().setPubDate(DateUtils.parseOrNullIfFuture(content));
@@ -206,8 +206,8 @@ public class Atom extends Namespace {
state.getFeed().setImageUrl(content);
} else if (IMAGE_ICON.equals(top) && state.getFeed() != null) {
state.getFeed().setImageUrl(content);
- } else if (AUTHOR_NAME.equals(top) && AUTHOR.equals(second) &&
- state.getFeed() != null && state.getCurrentItem() == null) {
+ } else if (AUTHOR_NAME.equals(top) && AUTHOR.equals(second)
+ && state.getFeed() != null && state.getCurrentItem() == null) {
String currentName = state.getFeed().getAuthor();
if (currentName == null) {
state.getFeed().setAuthor(content);
diff --git a/parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/namespace/DublinCore.java b/parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/namespace/DublinCore.java
index 7e2f68a17..ead449845 100644
--- a/parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/namespace/DublinCore.java
+++ b/parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/namespace/DublinCore.java
@@ -22,8 +22,8 @@ public class DublinCore extends Namespace {
@Override
public void handleElementEnd(String localName, HandlerState state) {
- if (state.getCurrentItem() != null && state.getContentBuf() != null &&
- state.getTagstack() != null && state.getTagstack().size() >= 2) {
+ if (state.getCurrentItem() != null && state.getContentBuf() != null
+ && state.getTagstack() != null && state.getTagstack().size() >= 2) {
FeedItem currentItem = state.getCurrentItem();
String top = state.getTagstack().peek().getName();
String second = state.getSecondTag().getName();