// maximal tree depth for which incremental reparse is allowed
// if tree is deeper then it will be replaced completely - to avoid SOEs
- public static final int INCREMENTAL_REPARSE_DEPTH_LIMIT = Registry.intValue("psi.incremental.reparse.depth.limit");
+ public static final int INCREMENTAL_REPARSE_DEPTH_LIMIT = Registry.intValue("psi.incremental.reparse.depth.limit", 1000);
public static final Key<Boolean> TREE_DEPTH_LIMIT_EXCEEDED = Key.create("TREE_IS_TOO_DEEP");
return get(key).asInteger();
}
+ public static int intValue(@PropertyKey(resourceBundle = REGISTRY_BUNDLE) String key, int defaultValue) {
+ try {
+ return get(key).asInteger();
+ }
+ catch (MissingResourceException ex) {
+ return defaultValue;
+ }
+ }
+
public static double doubleValue(@PropertyKey(resourceBundle = REGISTRY_BUNDLE) String key) {
return get(key).asDouble();
}