From af1970a767b96893c6f46edb6632ec9abf6b3933 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 3 Apr 2020 20:28:44 +0300 Subject: Cleanup some IDEA warnings --- .../java/com/juick/server/api/rss/extension/JuickModuleGenerator.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/java/com/juick/server/api/rss') 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 NAMESPACES; static { - Set nss = new HashSet<>(); - nss.add(JUICK_NS); - NAMESPACES = Collections.unmodifiableSet(nss); + NAMESPACES = Set.of(JUICK_NS); } @Override -- cgit v1.2.3