We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d524d2c commit 2dc5f28Copy full SHA for 2dc5f28
src/main/java/by/andd3dfx/refactoring/refactored/EventParser.java
@@ -21,10 +21,8 @@ public class EventParser {
21
reflections.getSubTypesOf(IEventParser.class)
22
.forEach(aClass -> extracted(aClass));
23
24
- for (EventType eventType : EventType.values()) {
25
- if (!map.containsKey(eventType)) {
26
- throw new IllegalStateException("Not all values of EventType have appropriate EventParser!");
27
- }
+ if (map.size() != EventType.values().length) {
+ throw new IllegalStateException("Not all values of EventType have appropriate EventParser!");
28
}
29
30
0 commit comments