Skip to content

Commit 492bca3

Browse files
authored
style : change class position
1 parent d55530a commit 492bca3

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

spring-core/src/main/java/org/springframework/util/AntPathMatcher.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -335,22 +335,6 @@ else if (!fullMatch && "**".equals(pattDirs[pattIdxStart])) {
335335

336336
return true;
337337
}
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-
}
354338

355339
private boolean checkSubPatternMatch(MatchContext context, int i, int patLength) {
356340
for (int j = 0; j < patLength; j++) {
@@ -660,7 +644,23 @@ public Comparator<String> getPatternComparator(String path) {
660644
return new AntPatternComparator(path, this.pathSeparator);
661645
}
662646

647+
private static class MatchContext{
648+
String[] pattDirs;
649+
String[] pathDirs;
650+
int pattIdxStart;
651+
int pathIdxStart;
652+
@Nullable
653+
Map<String, String> uriTemplateVariables;
663654

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+
664664
/**
665665
* Tests whether a string matches against a pattern via a {@link Pattern}.
666666
* <p>The pattern may contain special characters: '*' means zero or more characters; '?' means one and

0 commit comments

Comments
 (0)