Skip to content

Commit d41e230

Browse files
committed
Renamed private method resExp to resolveExpression for clarity.
1 parent a7dc018 commit d41e230

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/net/datafaker/service/FakeValuesService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,8 @@ protected String resolveExpression(String expression, Object current, ProviderRe
618618
while (j < length && Character.isWhitespace(expr.charAt(j))) j++;
619619
final String arguments = j == length ? "" : expr.substring(j);
620620
final String[] args = splitArguments(arguments);
621-
resolved = resExp(directive, args, current, root, context, cacheKey);
622-
// resExp stored recipe in RECIPE_MAP if cacheable; materialize for L2
621+
resolved = resolveExpression(directive, args, current, root, context, cacheKey);
622+
// resolveExpression stored recipe in RECIPE_MAP if cacheable; materialize for L2
623623
final ValueResolver stored = RECIPE_MAP.get(cacheKey);
624624
if (stored != null) {
625625
instanceMap.put(expr, stored.materialize(root));
@@ -699,9 +699,9 @@ private String[] splitExpressions(String expression, int length) {
699699
});
700700
}
701701

702-
private Object resExp(String directive, String[] args, Object current, ProviderRegistration root, FakerContext context, CacheKey cacheKey) {
702+
private Object resolveExpression(String directive, String[] args, Object current, ProviderRegistration root, FakerContext context, CacheKey cacheKey) {
703703
Object res = resolveExpression(directive, args, current, root, context);
704-
LOG.fine(() -> "resExp(%s [%s]) current: %s, root: %s, context: %s, cacheKey: %s -> res: %s".formatted(directive, Arrays.toString(args), current, root, context, cacheKey, res));
704+
LOG.fine(() -> "resolveExpression(%s [%s]) current: %s, root: %s, context: %s, cacheKey: %s -> res: %s".formatted(directive, Arrays.toString(args), current, root, context, cacheKey, res));
705705
if (res instanceof CharSequence) {
706706
if (((CharSequence) res).isEmpty()) {
707707
RECIPE_MAP.put(cacheKey, EMPTY_STRING);

0 commit comments

Comments
 (0)