File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages
samples/client/petstore/java/webclient-sealedInterface Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,7 +109,6 @@ public class JavaClientCodegen extends AbstractJavaCodegen
109109 // Internal configurations
110110 public static final String SINGLE_REQUEST_PARAMETER = "singleRequestParameter" ;
111111 public static final String STATIC_REQUEST = "staticRequest" ;
112- // TODO attempt to implement the setting similar to how it is done here https://github.com/OpenAPITools/openapi-generator/pull/20590/files
113112 public static final String JAVA_17 = "java17" ;
114113
115114 public static final String SERIALIZATION_LIBRARY_GSON = "gson" ;
@@ -380,6 +379,10 @@ public void processOpts() {
380379 writePropertyBack (SINGLE_REQUEST_PARAMETER , getSingleRequestParameter ());
381380 writePropertyBack (STATIC_REQUEST , getStaticRequest ());
382381
382+ if (libWebClient && (useSealedOneOfInterfaces || useJakartaEe )) {
383+ writePropertyBack (JAVA_17 , true );
384+ }
385+
383386 if (!useRxJava && !useRxJava2 && !useRxJava3 ) {
384387 additionalProperties .put (DO_NOT_USE_RX , true );
385388 }
Original file line number Diff line number Diff line change 3838 <artifactId >maven-compiler-plugin</artifactId >
3939 <version >3.13.0</version >
4040 <configuration >
41- <source >1.8 </source >
42- <target >1.8 </target >
41+ <source >17 </source >
42+ <target >17 </target >
4343 </configuration >
4444 </plugin >
4545 <plugin >
You can’t perform that action at this time.
0 commit comments