result.add(new Pair<InferenceRule_Runtime, IsApplicableStatus>(rule, status));
}
}
return result;
}
<BUG>}</BUG>
public List<Pair<NonTypesystemRule_Runtime, IsApplicableStatus>> getNonTypesystemRules(final SNode node) {
<BUG>synchronized (RULES_LOCK) {</BUG>
List<Pair<NonTypesystemRule_Runtime, IsApplicableStatus>> result =
<BUG>new LinkedList<Pair<NonTypesystemRule_Runtime, IsApplicableStatus>>();
Set<NonTypesystemRule_Runtime> ruleSet = myNonTypesystemRules.getRules(node);
for (NonTypesystemRule_Runtime rule : ruleSet) {</BUG>
IsApplicableStatus status = rule.isApplicableAndPattern(node);

result.add(new Pair<InferenceRule_Runtime, IsApplicableStatus>(rule, status));
}
}
return result;
}
public List<Pair<NonTypesystemRule_Runtime, IsApplicableStatus>> getNonTypesystemRules(final SNode node) {
List<Pair<NonTypesystemRule_Runtime, IsApplicableStatus>> result =
new LinkedList<Pair<NonTypesystemRule_Runtime, IsApplicableStatus>>();
Set<NonTypesystemRule_Runtime> ruleSet;
synchronized (RULES_LOCK) {
ruleSet = myNonTypesystemRules.getRules(node);
}
for (NonTypesystemRule_Runtime rule : ruleSet) {
IsApplicableStatus status = rule.isApplicableAndPattern(node);
