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
Get rid of unnecessary reflective calls at RESTEasy Reactive startup
These calls were originally done to support
REST Links, but the information they obtained
has long been available at build time, meaning
the reflective calls are totally unnecessary
(and wasteful)
Copy file name to clipboardExpand all lines: independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeResourceDeployment.java
+1-14Lines changed: 1 addition & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -17,11 +17,9 @@
17
17
importjava.util.Arrays;
18
18
importjava.util.Collections;
19
19
importjava.util.HashMap;
20
-
importjava.util.HashSet;
21
20
importjava.util.List;
22
21
importjava.util.Map;
23
22
importjava.util.Optional;
24
-
importjava.util.Set;
25
23
importjava.util.concurrent.Executor;
26
24
importjava.util.function.Supplier;
27
25
@@ -177,19 +175,8 @@ public RuntimeResource buildResourceMethod(ResourceClass clazz,
Copy file name to clipboardExpand all lines: independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveResourceInfo.java
+1-29Lines changed: 1 addition & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,6 @@
3
3
importjava.lang.annotation.Annotation;
4
4
importjava.lang.reflect.Method;
5
5
importjava.lang.reflect.Type;
6
-
importjava.util.Set;
7
6
8
7
importjakarta.ws.rs.container.ResourceInfo;
9
8
@@ -20,8 +19,6 @@ public class ResteasyReactiveResourceInfo implements ResourceInfo {
20
19
privatefinalStringname;
21
20
privatefinalClass<?> declaringClass;
22
21
privatefinalClass[] parameterTypes;
23
-
privatefinalSet<String> classAnnotationNames;
24
-
privatefinalSet<String> methodAnnotationNames;
25
22
/**
26
23
* If it's non-blocking method within the runtime that won't always default to blocking
27
24
*/
@@ -30,27 +27,17 @@ public class ResteasyReactiveResourceInfo implements ResourceInfo {
30
27
* This class name will only differ from {@link this#declaringClass} name when the {@link this#method} was inherited.
0 commit comments