Commit 7b83462
authored
[kotlin] Make API classes open (non-final) unless nonPublicApi is used (#22461)
* [kotlin] Make API classes open (non-final) unless nonPublicApi is used
By making those classes open, AspectJ can be used to enhance their
behavior.
I'm not changing kotlin-multiplatform templates, where 'open' was
already present before my changes.
Closes #22271
* Fail Kotlin sample compilation if API classes stop to be public
Serves as a 'regression test'.1 parent 453997b commit 7b83462
File tree
101 files changed
+107
-100
lines changed- modules/openapi-generator/src/main/resources/kotlin-client/libraries
- jvm-okhttp
- jvm-spring-restclient
- jvm-spring-webclient
- jvm-vertx
- jvm-volley
- samples/client
- echo_api
- kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/apis
- kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis
- kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis
- others
- kotlin-integer-enum/src/main/kotlin/org/openapitools/client/apis
- kotlin-jvm-okhttp-non-ascii-headers/src/main/kotlin/org/openapitools/client/apis
- kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/apis
- kotlin-jvm-okhttp-path-comments/src/main/kotlin/org/openapitools/client/apis
- petstore
- kotlin-allOf-discriminator-kotlinx-serialization/src/main/kotlin/org/openapitools/client/apis
- kotlin-allOf-discriminator/src/main/kotlin/org/openapitools/client/apis
- kotlin-array-integer-enum/src/main/kotlin/org/openapitools/client/apis
- kotlin-array-simple-string-jvm-okhttp4/src/main/kotlin/org/openapitools/client/apis
- kotlin-array-simple-string-jvm-volley/src/main/java/org/openapitools/client/apis
- kotlin-bigdecimal-default-okhttp4/src/main/kotlin/org/openapitools/client/apis
- kotlin-default-values-jvm-okhttp4/src/main/kotlin/org/openapitools/client/apis
- kotlin-default-values-jvm-volley/src/main/java/org/openapitools/client/apis
- kotlin-enum-default-value/src/main/kotlin/org/openapitools/client/apis
- kotlin-explicit/src/main/kotlin/org/openapitools/client/apis
- kotlin-gson/src/main/kotlin/org/openapitools/client/apis
- kotlin-jackson/src/main/kotlin/org/openapitools/client/apis
- kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis
- kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis
- kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/apis
- kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools
- client/apis
- usage
- kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis
- kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/apis
- kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/apis
- kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/apis
- kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/apis
- kotlin-jvm-volley/src/main/java/org/openapitools/client/apis
- kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/apis
- kotlin-modelMutable/src/main/kotlin/org/openapitools/client/apis
- kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis
- kotlin-name-parameter-mappings/src/main/kotlin/org/openapitools/client/apis
- kotlin-nullable/src/main/kotlin/org/openapitools/client/apis
- kotlin-string/src/main/kotlin/org/openapitools/client/apis
- kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis
- kotlin-uppercase-enum/src/main/kotlin/org/openapitools/client/apis
- kotlin/src/main/kotlin/org/openapitools/client/apis
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
101 files changed
+107
-100
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments