mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
apply formatter
This commit is contained in:
@@ -4,8 +4,7 @@ import org.jdom.Element;
|
||||
|
||||
import com.sun.syndication.feed.opml.Opml;
|
||||
|
||||
public class OPML11Generator extends
|
||||
com.sun.syndication.io.impl.OPML10Generator {
|
||||
public class OPML11Generator extends com.sun.syndication.io.impl.OPML10Generator {
|
||||
|
||||
public OPML11Generator() {
|
||||
super("opml_1.1");
|
||||
|
||||
@@ -6,20 +6,17 @@ import org.jdom.Element;
|
||||
import com.sun.syndication.io.impl.OPML10Parser;
|
||||
|
||||
public class OPML11Parser extends OPML10Parser {
|
||||
|
||||
public OPML11Parser() {
|
||||
super("opml_1.1");
|
||||
}
|
||||
|
||||
public OPML11Parser() {
|
||||
super("opml_1.1");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isMyType(Document document) {
|
||||
Element e = document.getRootElement();
|
||||
|
||||
if (e.getName().equals("opml")
|
||||
&& (e.getChild("head") == null || e.getChild("head").getChild(
|
||||
"docs") == null)
|
||||
&& (e.getAttributeValue("version") == null || e
|
||||
.getAttributeValue("version").equals("1.1"))) {
|
||||
if (e.getName().equals("opml") && (e.getChild("head") == null || e.getChild("head").getChild("docs") == null)
|
||||
&& (e.getAttributeValue("version") == null || e.getAttributeValue("version").equals("1.1"))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -26,8 +26,7 @@ public class RSSRDF10Parser extends RSS10Parser {
|
||||
|
||||
Element rssRoot = document.getRootElement();
|
||||
Namespace defaultNS = rssRoot.getNamespace();
|
||||
List additionalNSs = Lists.newArrayList(rssRoot
|
||||
.getAdditionalNamespaces());
|
||||
List additionalNSs = Lists.newArrayList(rssRoot.getAdditionalNamespaces());
|
||||
List<Element> children = rssRoot.getChildren();
|
||||
if (CollectionUtils.isNotEmpty(children)) {
|
||||
Element child = children.get(0);
|
||||
|
||||
Reference in New Issue
Block a user