Performance: Set replaceable with EnumSet
This commit is contained in:
parent
0f9573e22e
commit
8a7f50f3a6
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import java.text.DateFormatSymbols;
|
|||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Calendar;
|
||||
import java.util.EnumSet;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
@ -1812,7 +1813,7 @@ public class OpeningHoursParser {
|
|||
TokenType currentParse = TokenType.TOKEN_UNKNOWN;
|
||||
TokenType currentParseParent = TokenType.TOKEN_UNKNOWN;
|
||||
List<Token[]> listOfPairs = new ArrayList<>();
|
||||
Set<TokenType> presentTokens = new HashSet<>();
|
||||
Set<TokenType> presentTokens = EnumSet.noneOf(TokenType.class);
|
||||
Token[] currentPair = new Token[2];
|
||||
listOfPairs.add(currentPair);
|
||||
Token prevToken = null;
|
||||
|
|
Loading…
Reference in a new issue