From 7bbcce50d1cce1f1f64c357b0cdcde881a4f8a0a Mon Sep 17 00:00:00 2001 From: Michael Atwood Date: Tue, 29 Mar 2016 09:48:32 -0400 Subject: [PATCH] Added missing entry 'rights' to Atom 1.0 generator output. --- .../java/com/rometools/rome/io/impl/Atom10Generator.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rome/src/main/java/com/rometools/rome/io/impl/Atom10Generator.java b/rome/src/main/java/com/rometools/rome/io/impl/Atom10Generator.java index 3cced0c..fec27cc 100644 --- a/rome/src/main/java/com/rometools/rome/io/impl/Atom10Generator.java +++ b/rome/src/main/java/com/rometools/rome/io/impl/Atom10Generator.java @@ -324,6 +324,11 @@ public class Atom10Generator extends BaseWireFeedGenerator { eEntry.addContent(sourceElement); } + final String rights = entry.getRights(); + if (rights != null) { + eEntry.addContent(generateSimpleElement("rights", rights)); + } + } protected void checkFeedHeaderConstraints(final Element eFeed) throws FeedException {