File tree Expand file tree Collapse file tree
endpoints-framework/src/main/java/com/google/api/server/spi/config/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626import com .google .common .base .Preconditions ;
2727import com .google .common .collect .ImmutableList ;
2828import com .google .common .reflect .TypeToken ;
29-
3029import java .lang .reflect .Method ;
3130import java .lang .reflect .Type ;
3231import java .util .ArrayList ;
3332import java .util .Collection ;
34- import java .util .HashSet ;
33+ import java .util .LinkedHashSet ;
3534import java .util .List ;
3635import java .util .Map ;
3736import java .util .Objects ;
@@ -499,7 +498,7 @@ public Collection<String> getPathParameters() {
499498 Pattern pathPattern = java .util .regex .Pattern .compile ("\\ {([^\\ }]*)\\ }" );
500499 Matcher pathMatcher = pathPattern .matcher (path );
501500
502- Collection <String > pathParameters = new HashSet <>();
501+ Collection <String > pathParameters = new LinkedHashSet <>();
503502 while (pathMatcher .find ()) {
504503 pathParameters .add (pathMatcher .group (1 ));
505504 }
You can’t perform that action at this time.
0 commit comments