diff options
author | Vitaly Takmazov | 2020-04-03 20:28:44 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-04-03 20:28:44 +0300 |
commit | af1970a767b96893c6f46edb6632ec9abf6b3933 (patch) | |
tree | 999b508bf919dcc29f087bc85b029b4de9d99c7e /src/main/java/com/juick/server/api/rss | |
parent | 59b1a3120cab8683ae4625b832c0efa1d3a33bab (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.java | 4 |
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 |