You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@
60
60
importjava.util.LinkedHashMap;
61
61
importjava.util.LinkedHashSet;
62
62
importjava.util.List;
63
+
importjava.util.Set;
63
64
importjava.util.Arrays;
64
65
importjava.util.ArrayList;
65
66
importjava.util.Date;
@@ -841,8 +842,7 @@ public boolean isJsonMime(String mime) {
841
842
842
843
/**
843
844
* Select the Accept header's value from the given accepts array:
844
-
* if JSON exists in the given array, use it;
845
-
* otherwise use all of them (joining into a string)
845
+
* if JSON exists in the given array, makes sure there is only one entry of it.
846
846
*
847
847
* @param accepts The accepts array to select from
848
848
* @return The Accept header to use. If the given array is empty,
@@ -852,12 +852,19 @@ public String selectHeaderAccept(String... accepts) {
Copy file name to clipboardExpand all lines: samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,7 @@
59
59
importjava.util.LinkedHashMap;
60
60
importjava.util.LinkedHashSet;
61
61
importjava.util.List;
62
+
importjava.util.Set;
62
63
importjava.util.Arrays;
63
64
importjava.util.ArrayList;
64
65
importjava.util.Date;
@@ -749,8 +750,7 @@ public boolean isJsonMime(String mime) {
749
750
750
751
/**
751
752
* Select the Accept header's value from the given accepts array:
752
-
* if JSON exists in the given array, use it;
753
-
* otherwise use all of them (joining into a string)
753
+
* if JSON exists in the given array, makes sure there is only one entry of it.
754
754
*
755
755
* @param accepts The accepts array to select from
756
756
* @return The Accept header to use. If the given array is empty,
@@ -760,12 +760,19 @@ public String selectHeaderAccept(String... accepts) {
Copy file name to clipboardExpand all lines: samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/ApiClient.java
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,7 @@
59
59
importjava.util.LinkedHashMap;
60
60
importjava.util.LinkedHashSet;
61
61
importjava.util.List;
62
+
importjava.util.Set;
62
63
importjava.util.Arrays;
63
64
importjava.util.ArrayList;
64
65
importjava.util.Date;
@@ -700,8 +701,7 @@ public boolean isJsonMime(String mime) {
700
701
701
702
/**
702
703
* Select the Accept header's value from the given accepts array:
703
-
* if JSON exists in the given array, use it;
704
-
* otherwise use all of them (joining into a string)
704
+
* if JSON exists in the given array, makes sure there is only one entry of it.
705
705
*
706
706
* @param accepts The accepts array to select from
707
707
* @return The Accept header to use. If the given array is empty,
@@ -711,12 +711,19 @@ public String selectHeaderAccept(String... accepts) {
Copy file name to clipboardExpand all lines: samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/ApiClient.java
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@
60
60
importjava.util.LinkedHashMap;
61
61
importjava.util.LinkedHashSet;
62
62
importjava.util.List;
63
+
importjava.util.Set;
63
64
importjava.util.Arrays;
64
65
importjava.util.ArrayList;
65
66
importjava.util.Date;
@@ -825,8 +826,7 @@ public boolean isJsonMime(String mime) {
825
826
826
827
/**
827
828
* Select the Accept header's value from the given accepts array:
828
-
* if JSON exists in the given array, use it;
829
-
* otherwise use all of them (joining into a string)
829
+
* if JSON exists in the given array, makes sure there is only one entry of it.
830
830
*
831
831
* @param accepts The accepts array to select from
832
832
* @return The Accept header to use. If the given array is empty,
@@ -836,12 +836,19 @@ public String selectHeaderAccept(String... accepts) {
Copy file name to clipboardExpand all lines: samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/ApiClient.java
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@
60
60
importjava.util.LinkedHashMap;
61
61
importjava.util.LinkedHashSet;
62
62
importjava.util.List;
63
+
importjava.util.Set;
63
64
importjava.util.Arrays;
64
65
importjava.util.ArrayList;
65
66
importjava.util.Date;
@@ -825,8 +826,7 @@ public boolean isJsonMime(String mime) {
825
826
826
827
/**
827
828
* Select the Accept header's value from the given accepts array:
828
-
* if JSON exists in the given array, use it;
829
-
* otherwise use all of them (joining into a string)
829
+
* if JSON exists in the given array, makes sure there is only one entry of it.
830
830
*
831
831
* @param accepts The accepts array to select from
832
832
* @return The Accept header to use. If the given array is empty,
@@ -836,12 +836,19 @@ public String selectHeaderAccept(String... accepts) {
0 commit comments