@@ -335,22 +335,6 @@ else if (!fullMatch && "**".equals(pattDirs[pattIdxStart])) {
335
335
336
336
return true ;
337
337
}
338
- private static class MatchContext {
339
- String [] pattDirs ;
340
- String [] pathDirs ;
341
- int pattIdxStart ;
342
- int pathIdxStart ;
343
- @ Nullable
344
- Map <String , String > uriTemplateVariables ;
345
-
346
- MatchContext (String [] pattDirs , String [] pathDirs , int pattIdxStart , int pathIdxStart , @ Nullable Map <String , String > uriTemplateVariables ) {
347
- this .pattDirs = pattDirs ;
348
- this .pathDirs = pathDirs ;
349
- this .pattIdxStart = pattIdxStart ;
350
- this .pathIdxStart = pathIdxStart ;
351
- this .uriTemplateVariables = uriTemplateVariables ;
352
- }
353
- }
354
338
355
339
private boolean checkSubPatternMatch (MatchContext context , int i , int patLength ) {
356
340
for (int j = 0 ; j < patLength ; j ++) {
@@ -660,7 +644,23 @@ public Comparator<String> getPatternComparator(String path) {
660
644
return new AntPatternComparator (path , this .pathSeparator );
661
645
}
662
646
647
+ private static class MatchContext {
648
+ String [] pattDirs ;
649
+ String [] pathDirs ;
650
+ int pattIdxStart ;
651
+ int pathIdxStart ;
652
+ @ Nullable
653
+ Map <String , String > uriTemplateVariables ;
663
654
655
+ MatchContext (String [] pattDirs , String [] pathDirs , int pattIdxStart , int pathIdxStart , @ Nullable Map <String , String > uriTemplateVariables ) {
656
+ this .pattDirs = pattDirs ;
657
+ this .pathDirs = pathDirs ;
658
+ this .pattIdxStart = pattIdxStart ;
659
+ this .pathIdxStart = pathIdxStart ;
660
+ this .uriTemplateVariables = uriTemplateVariables ;
661
+ }
662
+ }
663
+
664
664
/**
665
665
* Tests whether a string matches against a pattern via a {@link Pattern}.
666
666
* <p>The pattern may contain special characters: '*' means zero or more characters; '?' means one and
0 commit comments