aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/api/rss
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/server/api/rss')
-rw-r--r--src/main/java/com/juick/server/api/rss/extension/JuickModuleGenerator.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/com/juick/server/api/rss/extension/JuickModuleGenerator.java b/src/main/java/com/juick/server/api/rss/extension/JuickModuleGenerator.java
index a3747fc9..fc8586ea 100644
--- a/src/main/java/com/juick/server/api/rss/extension/JuickModuleGenerator.java
+++ b/src/main/java/com/juick/server/api/rss/extension/JuickModuleGenerator.java
@@ -41,9 +41,7 @@ public class JuickModuleGenerator implements ModuleGenerator {
private static final Set<Namespace> NAMESPACES;
static {
- Set<Namespace> nss = new HashSet<>();
- nss.add(JUICK_NS);
- NAMESPACES = Collections.unmodifiableSet(nss);
+ NAMESPACES = Set.of(JUICK_NS);
}
@Override