Commit cfe476f
authored
immutable Pair, better performant HttpBearerAuth, consistent code-style (#20743)
* make Pair immutable and in google-code-style
* apply google-code-style to JavaTimeFormatter (to make it consistent with most other auto-generated java)
* move upperCaseBearer to ctor (scheme is final and private; only needs to be fixed once); also replaced Optional with ternary (perf and cleaner code)
* apply google-code-style to Authentication to make it consistent with rest of auth code
* fresh samples1 parent d911a71 commit cfe476f
File tree
87 files changed
+2120
-2738
lines changed- modules/openapi-generator/src/main/resources/Java
- auth
- samples
- client
- echo_api/java
- apache-httpclient/src/main/java/org/openapitools/client
- auth
- native/src/main/java/org/openapitools/client
- okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client
- okhttp-gson/src/main/java/org/openapitools/client
- restclient/src/main/java/org/openapitools/client
- resteasy/src/main/java/org/openapitools/client
- auth
- resttemplate/src/main/java/org/openapitools/client
- others/java
- jersey2-oneOf-Mixed/src/main/java/org/openapitools/client
- jersey2-oneOf-duplicates/src/main/java/org/openapitools/client
- okhttp-gson-oneOf-array/src/main/java/org/openapitools/client
- okhttp-gson-oneOf/src/main/java/org/openapitools/client
- okhttp-gson-streaming/src/main/java/org/openapitools/client
- restclient-useAbstractionForFiles/src/main/java/org/openapitools/client
- resttemplate-list-schema-validation/src/main/java/org/openapitools/client
- resttemplate-useAbstractionForFiles/src/main/java/org/openapitools/client
- webclient-useAbstractionForFiles/src/main/java/org/openapitools/client
- petstore/java
- apache-httpclient/src/main/java/org/openapitools/client
- auth
- jersey2-java8-localdatetime/src/main/java/org/openapitools/client
- jersey2-java8/src/main/java/org/openapitools/client
- jersey3-oneOf/src/main/java/org/openapitools/client
- jersey3/src/main/java/org/openapitools/client
- native-async/src/main/java/org/openapitools/client
- native-jakarta/src/main/java/org/openapitools/client
- native/src/main/java/org/openapitools/client
- okhttp-gson-3.1-duplicated-operationid/src/main/java/org/openapitools/client
- okhttp-gson-3.1/src/main/java/org/openapitools/client
- okhttp-gson-awsv4signature/src/main/java/org/openapitools/client
- okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client
- okhttp-gson-group-parameter/src/main/java/org/openapitools/client
- okhttp-gson-nullable-required/src/main/java/org/openapitools/client
- okhttp-gson-parcelableModel/src/main/java/org/openapitools/client
- okhttp-gson-swagger1/src/main/java/org/openapitools/client
- okhttp-gson-swagger2/src/main/java/org/openapitools/client
- okhttp-gson/src/main/java/org/openapitools/client
- restclient-nullable-arrays/src/main/java/org/openapitools/client
- restclient-swagger2/src/main/java/org/openapitools/client
- restclient-useSingleRequestParameter/src/main/java/org/openapitools/client
- restclient/src/main/java/org/openapitools/client
- resteasy/src/main/java/org/openapitools/client
- auth
- resttemplate-jakarta/src/main/java/org/openapitools/client
- resttemplate-swagger1/src/main/java/org/openapitools/client
- resttemplate-swagger2/src/main/java/org/openapitools/client
- resttemplate-withXml/src/main/java/org/openapitools/client
- resttemplate/src/main/java/org/openapitools/client
- retrofit2-play26/src/main/java/org/openapitools/client
- auth
- vertx-no-nullable/src/main/java/org/openapitools/client
- vertx/src/main/java/org/openapitools/client
- webclient-jakarta/src/main/java/org/openapitools/client
- webclient-nullable-arrays/src/main/java/org/openapitools/client
- webclient-swagger2/src/main/java/org/openapitools/client
- webclient-useSingleRequestParameter/src/main/java/org/openapitools/client
- webclient/src/main/java/org/openapitools/client
- openapi3/client
- extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client
- petstore/java
- jersey2-java8-special-characters/src/main/java/org/openapitools/client
- jersey2-java8-swagger1/src/main/java/org/openapitools/client
- jersey2-java8-swagger2/src/main/java/org/openapitools/client
- jersey2-java8/src/main/java/org/openapitools/client
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
87 files changed
+2120
-2738
lines changedLines changed: 39 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
16 | 24 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
24 | 33 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
31 | 45 | | |
| 46 | + | |
32 | 47 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
Lines changed: 15 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
19 | 18 | | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
46 | 26 | | |
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
| 49 | + | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
55 | | - | |
| 53 | + | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
59 | | - | |
| 57 | + | |
60 | 58 | | |
61 | 59 | | |
Lines changed: 39 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
27 | 35 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
35 | 44 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
42 | 56 | | |
| 57 | + | |
43 | 58 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
Lines changed: 15 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
30 | 29 | | |
31 | | - | |
32 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
57 | 37 | | |
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | | - | |
| 28 | + | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | | - | |
| 60 | + | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
65 | | - | |
66 | | - | |
| 64 | + | |
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
70 | | - | |
| 68 | + | |
71 | 69 | | |
72 | 70 | | |
0 commit comments