From 72ecb2d82560d84e0a547974854f95070feea1cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 19 Feb 2013 20:14:55 +0100 Subject: [PATCH] Use a normal map to store episodes, insertion order is not important. --- src/main/java/net/pterodactylus/rhynodge/filters/EpisodeFilter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/rhynodge/filters/EpisodeFilter.java b/src/main/java/net/pterodactylus/rhynodge/filters/EpisodeFilter.java index 6c6cfc0..7709d9e 100644 --- a/src/main/java/net/pterodactylus/rhynodge/filters/EpisodeFilter.java +++ b/src/main/java/net/pterodactylus/rhynodge/filters/EpisodeFilter.java @@ -19,7 +19,8 @@ package net.pterodactylus.rhynodge.filters; import static com.google.common.base.Preconditions.checkState; -import java.util.LinkedHashMap; +import java.util.HashMap; +import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -57,7 +58,7 @@ public class EpisodeFilter implements Filter { checkState(state instanceof TorrentState, "state is not a TorrentState but a %s!", state.getClass()); TorrentState torrentState = (TorrentState) state; - LinkedHashMap episodes = new LinkedHashMap(); + Map episodes = new HashMap(); for (TorrentFile torrentFile : torrentState) { Episode episode = extractEpisode(torrentFile); if (episode == null) { -- 2.7.4