review feedback

- indentation
- make counter limit protected

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
This commit is contained in:
Christian Dietrich 2018-11-07 12:40:03 +01:00
parent 8a8ce2c8f6
commit 4af6181d2e

View file

@ -105,7 +105,7 @@ public class LazyLinkingResource extends XtextResource {
@Named(CYCLIC_LINKING_DECTECTION_COUNTER_LIMIT)
@Inject(optional=true)
private int cyclicLinkingDectectionCounterLimit = 100;
protected int cyclicLinkingDectectionCounterLimit = 100;
private int cyclicLinkingDetectionCounter = 0;
@ -306,9 +306,9 @@ public class LazyLinkingResource extends XtextResource {
return null;
} finally {
if (cyclicLinkingDetectionCounter > cyclicLinkingDectectionCounterLimit) {
resolving.remove(triple);
}
cyclicLinkingDetectionCounter--;
resolving.remove(triple);
}
cyclicLinkingDetectionCounter--;
}
}