Skip to content

Conversation

@Pablete1234
Copy link
Member

Old system would not work with something like:

<all id="all-filter">
   <filter id="walking"/>
   <filter id="crouching"/>
</all>
<walking id="walking"/>
<crouching id="crouching"/>

because the top 2 filter references were searching 2 filters that didn't exist yet.
With the new system, 2 "filter reference" objects would be created, and when all filters loaded, the references would be searched, if not found, errors will be added.

@Override
public boolean loadMatch(@NonNull Match match) {
filters.put(match, Maps.newHashMap());
references.put(match, new ArrayList<>());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've been using Lists.newArrayList() generally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants