aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/api/rss/extension
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-14 09:31:13 +0300
committerGravatar Vitaly Takmazov2018-03-14 09:31:13 +0300
commitb1e8980ed1460340fe4e8db2ce0d7ee1d213854a (patch)
treecd4d2ff004863d2c74736ea0d5790d8ef60fa4b1 /juick-server/src/main/java/com/juick/server/api/rss/extension
parent876f07840f6fa73e6f2ca0350d4ca8922c869075 (diff)
cleanup or supress warnings
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/api/rss/extension')
-rw-r--r--juick-server/src/main/java/com/juick/server/api/rss/extension/JuickModuleGenerator.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/rss/extension/JuickModuleGenerator.java b/juick-server/src/main/java/com/juick/server/api/rss/extension/JuickModuleGenerator.java
index eb103136..90dec35f 100644
--- a/juick-server/src/main/java/com/juick/server/api/rss/extension/JuickModuleGenerator.java
+++ b/juick-server/src/main/java/com/juick/server/api/rss/extension/JuickModuleGenerator.java
@@ -38,16 +38,16 @@ public class JuickModuleGenerator implements ModuleGenerator {
return JuickModule.URI;
}
- private static final Set NAMESPACES;
+ private static final Set<Namespace> NAMESPACES;
static {
- Set nss = new HashSet();
+ Set<Namespace> nss = new HashSet<>();
nss.add(JUICK_NS);
NAMESPACES = Collections.unmodifiableSet(nss);
}
@Override
- public Set getNamespaces() {
+ public Set<Namespace> getNamespaces() {
return NAMESPACES;
}
@@ -56,7 +56,7 @@ public class JuickModuleGenerator implements ModuleGenerator {
// this is not necessary, it is done to avoid the namespace definition in every item.
Element root = element;
while (root.getParent()!=null && root.getParent() instanceof Element) {
- root = (Element) element.getParent();
+ root = element.getParentElement();
}
root.addNamespaceDeclaration(JUICK_NS);