Skip to content

Commit 0f70ac7

Browse files
committed
Polish
Constructor.getParameterCount is JDK8+ only!
1 parent b7e75c5 commit 0f70ac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-websocket/src/main/java/org/springframework/web/socket/server/standard/AbstractTyrusRequestUpgradeStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public Object createdEndpoint(ServerEndpointRegistration registration, Component
216216
Object sessionListener = accessor.getPropertyValue("sessionListener");
217217
Object clusterContext = accessor.getPropertyValue("clusterContext");
218218
try {
219-
if (constructor.getParameterCount() == 9) {
219+
if (constructor.getParameterTypes().length == 9) {
220220
return constructor.newInstance(registration.getEndpoint(), registration, provider, container,
221221
"/", registration.getConfigurator(), sessionListener, clusterContext, null);
222222
}

0 commit comments

Comments
 (0)