Skip to content

Commit f9b3f00

Browse files
committed
no-mistakes(review): apply reviewer inline fixes
1 parent d6dc45f commit f9b3f00

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • server/java/metadata/src/main/java/com/metaobjects/config

‎server/java/metadata/src/main/java/com/metaobjects/config/Scope.java‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ private Scope() {}
6060
/** Regex metacharacters escaped for literal matching; mirrors the reference's class. */
6161
private static final String METACHARACTERS = ".*+?^${}()|[]\\";
6262

63-
/** A compiled scope. Both arrays are already anchored to the whole name. */
63+
/**
64+
* A compiled scope. The patterns carry no anchors: match them with
65+
* {@code Matcher.matches()} (as {@link #matchesScope} does), never {@code find()}.
66+
*/
6467
public static final class Compiled {
6568
private final List<Pattern> include;
6669
private final List<Pattern> exclude;

0 commit comments

Comments
 (0)