File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
core/runtime/src/main/java/io/quarkus/runtime/graal
extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/graal Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
1
package io .quarkus .runtime .graal ;
2
2
3
- import java .awt .Graphics ;
3
+ import java .awt .GraphicsEnvironment ;
4
4
import java .awt .Toolkit ;
5
5
import java .util .Iterator ;
6
6
import java .util .function .BooleanSupplier ;
@@ -41,7 +41,7 @@ public boolean getAsBoolean() {
41
41
@ TargetClass (className = "java.awt.GraphicsEnvironment" , onlyWith = AwtImageIO .IsAWTAbsent .class )
42
42
final class Target_java_awt_GraphicsEnvironment {
43
43
@ Substitute
44
- public static Graphics getLocalGraphicsEnvironment () {
44
+ public static GraphicsEnvironment getLocalGraphicsEnvironment () {
45
45
throw new UnsupportedOperationException (AwtImageIO .AWT_EXTENSION_HINT );
46
46
}
47
47
Original file line number Diff line number Diff line change 4
4
5
5
import javax .net .ssl .SSLContext ;
6
6
7
+ import org .jboss .resteasy .client .jaxrs .ClientHttpEngine ;
8
+ import org .jboss .resteasy .client .jaxrs .ClientHttpEngineBuilder ;
7
9
import org .jboss .resteasy .client .jaxrs .ResteasyClientBuilder ;
8
10
9
11
import com .oracle .svm .core .annotate .Alias ;
16
18
* {@code SSLContext.getInstance(SSLConnectionSocketFactory.TLS)} which will fail in native when the SSL has been disabled
17
19
*/
18
20
@ TargetClass (className = "org.jboss.resteasy.client.jaxrs.engines.ClientHttpEngineBuilder43" )
19
- public final class ClientHttpEngineBuilder43Replacement {
21
+ public final class ClientHttpEngineBuilder43Replacement implements ClientHttpEngineBuilder {
20
22
21
23
@ Alias
22
24
private ResteasyClientBuilder that ;
23
25
24
26
@ Substitute
25
- public ClientHttpEngineBuilder43Replacement resteasyClientBuilder (ResteasyClientBuilder resteasyClientBuilder ) {
27
+ public ClientHttpEngineBuilder resteasyClientBuilder (ResteasyClientBuilder resteasyClientBuilder ) {
26
28
that = resteasyClientBuilder ;
27
29
// make sure we only set a context if there is none or one wouldn't be created implicitly
28
30
if ((that .getSSLContext () == null ) && (that .getTrustStore () == null ) && (that .getKeyStore () == null )) {
@@ -34,4 +36,10 @@ public ClientHttpEngineBuilder43Replacement resteasyClientBuilder(ResteasyClient
34
36
}
35
37
return this ;
36
38
}
39
+
40
+ /**
41
+ * Unused alias to implement the {@link ClientHttpEngineBuilder} interface
42
+ */
43
+ @ Alias
44
+ public native ClientHttpEngine build ();
37
45
}
You can’t perform that action at this time.
0 commit comments