From: David ‘Bombe’ Roden Date: Tue, 19 Feb 2013 19:14:55 +0000 (+0100) Subject: Use a normal map to store episodes, insertion order is not important. X-Git-Tag: 0.1~21 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=72ecb2d82560d84e0a547974854f95070feea1cf;p=rhynodge.git Use a normal map to store episodes, insertion order is not important. --- 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) {