aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/api/rss
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-04-03 20:28:44 +0300
committerGravatar Vitaly Takmazov2020-04-03 20:28:44 +0300
commitaf1970a767b96893c6f46edb6632ec9abf6b3933 (patch)
tree999b508bf919dcc29f087bc85b029b4de9d99c7e /src/main/java/com/juick/server/api/rss
parent59b1a3120cab8683ae4625b832c0efa1d3a33bab (diff)
Cleanup some IDEA warnings
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 a3747fc92..fc8586eaf 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