Skip to content

Commit

Permalink
LinkedHashSet instead of HashSet as per issue #45
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaffioletti committed Jan 1, 2015
1 parent 429a0cc commit 293a38a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -2,7 +2,7 @@

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import java.util.UUID;
Expand Down Expand Up @@ -38,8 +38,8 @@ public static ApiMethodDoc buildFromAnnotation(ApiMethod annotation) {
public ApiMethodDoc() {
super();
this.headers = new ArrayList<ApiHeaderDoc>();
this.pathparameters = new HashSet<ApiParamDoc>();
this.queryparameters = new HashSet<ApiParamDoc>();
this.pathparameters = new LinkedHashSet<ApiParamDoc>();
this.queryparameters = new LinkedHashSet<ApiParamDoc>();
this.apierrors = new ArrayList<ApiErrorDoc>();
}

Expand Down
Expand Up @@ -3,7 +3,7 @@
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.UUID;

Expand Down Expand Up @@ -32,7 +32,7 @@ public ApiParamDoc(String name, String description, JSONDocType jsondocType, Str
}

public static Set<ApiParamDoc> getApiParamDocs(Method method, ApiParamType paramType) {
Set<ApiParamDoc> docs = new HashSet<ApiParamDoc>();
Set<ApiParamDoc> docs = new LinkedHashSet<ApiParamDoc>();

if (method.isAnnotationPresent(ApiParams.class)) {
for (ApiParam apiParam : method.getAnnotation(ApiParams.class).params()) {
Expand Down

0 comments on commit 293a38a

Please sign in to comment.