Skip to content

Commit

Permalink
minor edits to javadoc of PathPatternBuilder options
Browse files Browse the repository at this point in the history
  • Loading branch information
noodlze committed Mar 6, 2023
1 parent 09a4e3a commit 7c87563
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public final class PathPatternBuilder {
*
* <p>This option can only be specified once; multiple declarations will override one another.
*
* <p>Note: that this option and {@link PathPatternBuilder#hasExtension(String)} are mutually exclusive.
* <p>Note: this option and {@link PathPatternBuilder#hasExtension(String)} are mutually exclusive.
* When both are specified, the latter-most option will override the former.
*/
public PathPatternBuilder endsWith(String filename) {
Expand All @@ -72,7 +72,7 @@ public PathPatternBuilder endsWith(String filename) {
*
* <p>This option can only be specified once; multiple declarations will override one another.
*
* <p>Note: that this option and {@link PathPatternBuilder#endsWith(String)} are mutually exclusive.
* <p>Note: this option and {@link PathPatternBuilder#endsWith(String)} are mutually exclusive.
* When both are specified, the latter-most option will override the former.
*/
public PathPatternBuilder hasExtension(String extension) {
Expand All @@ -99,7 +99,8 @@ public PathPatternBuilder startsWith(String dirPath) {
* For example, `contains("/bar")` will match `/nix/bar/test.zip`, `/nix/quix/bar/twee/test.zip`
* but not `/bar/foo/test.zip` or `/ren/bar.json`.
*
* <p>This option can be specified multiple times. For example, chaining `contains("/bar").contains("foo")`
* <p>This option can be specified multiple times; multiple declarations will be chained.
* For example, `contains("/bar").contains("foo")`
* creates the glob-like pattern string `&#47;**&#47;bar&#47;**&#47;foo&#47;**".
*/
public PathPatternBuilder contains(String dirPath) {
Expand Down

0 comments on commit 7c87563

Please sign in to comment.