We can't short circuit traversal after all.
This commit is contained in:
parent
c8c8ab6881
commit
c2c07c95fc
|
@ -287,8 +287,6 @@ public abstract class BaseParser implements IParser {
|
||||||
protected void findBaseReferences(List<IBaseReference> allElements, IBase theElement, BaseRuntimeElementDefinition<?> theDefinition) {
|
protected void findBaseReferences(List<IBaseReference> allElements, IBase theElement, BaseRuntimeElementDefinition<?> theDefinition) {
|
||||||
if (theElement instanceof IBaseReference) {
|
if (theElement instanceof IBaseReference) {
|
||||||
allElements.add((IBaseReference) theElement);
|
allElements.add((IBaseReference) theElement);
|
||||||
// end traversal here, we recursively process nested resources later
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BaseRuntimeElementDefinition<?> def = theDefinition;
|
BaseRuntimeElementDefinition<?> def = theDefinition;
|
||||||
|
|
Loading…
Reference in New Issue