Clean up warnings
This commit is contained in:
@@ -639,10 +639,6 @@ public abstract class AbstractHandlerMethodMapping<T> extends AbstractHandlerMap
|
||||
this.registration = registration;
|
||||
}
|
||||
|
||||
public T getMapping() {
|
||||
return this.mapping;
|
||||
}
|
||||
|
||||
public HandlerMethod getHandlerMethod() {
|
||||
return this.registration.getHandlerMethod();
|
||||
}
|
||||
|
||||
@@ -64,6 +64,7 @@ public class ReactorNettyWebSocketSession
|
||||
* Constructor with an additional maxFramePayloadLength argument.
|
||||
* @since 5.1
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
public ReactorNettyWebSocketSession(WebsocketInbound inbound, WebsocketOutbound outbound,
|
||||
HandshakeInfo info, NettyDataBufferFactory bufferFactory,
|
||||
int maxFramePayloadLength) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -58,18 +58,21 @@ public class UndertowWebSocketHandlerAdapter extends AbstractReceiveListener {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void onFullBinaryMessage(WebSocketChannel channel, BufferedBinaryMessage message) {
|
||||
this.session.handleMessage(Type.BINARY, toMessage(Type.BINARY, message.getData().getResource()));
|
||||
message.getData().free();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void onFullPongMessage(WebSocketChannel channel, BufferedBinaryMessage message) {
|
||||
this.session.handleMessage(Type.PONG, toMessage(Type.PONG, message.getData().getResource()));
|
||||
message.getData().free();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void onFullCloseMessage(WebSocketChannel channel, BufferedBinaryMessage message) {
|
||||
CloseMessage closeMessage = new CloseMessage(message.getData().getResource());
|
||||
this.session.handleClose(CloseStatus.create(closeMessage.getCode(), closeMessage.getReason()));
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -37,12 +37,13 @@ import static org.springframework.web.testfixture.http.server.reactive.MockServe
|
||||
* @author Rossen Stoyanchev
|
||||
* @author Brian Clozel
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class AppCacheManifestTransformerTests {
|
||||
|
||||
private static final Duration TIMEOUT = Duration.ofSeconds(5);
|
||||
|
||||
|
||||
private AppCacheManifestTransformer transformer;
|
||||
private final AppCacheManifestTransformer transformer = new AppCacheManifestTransformer();
|
||||
|
||||
private ResourceTransformerChain chain;
|
||||
|
||||
@@ -57,7 +58,6 @@ public class AppCacheManifestTransformerTests {
|
||||
ResourceResolverChain resolverChain = new DefaultResourceResolverChain(resolvers);
|
||||
|
||||
this.chain = new DefaultResourceTransformerChain(resolverChain, Collections.emptyList());
|
||||
this.transformer = new AppCacheManifestTransformer();
|
||||
this.transformer.setResourceUrlProvider(createUrlProvider(resolvers));
|
||||
}
|
||||
|
||||
|
||||
@@ -158,6 +158,8 @@ public class ResourceUrlProviderTests {
|
||||
assertThat(parentUrlProvider.getHandlerMap()).isEmpty();
|
||||
ResourceUrlProvider childUrlProvider = childContext.getBean(ResourceUrlProvider.class);
|
||||
assertThat(childUrlProvider.getHandlerMap()).hasKeySatisfying(pathPatternStringOf("/resources/**"));
|
||||
childContext.close();
|
||||
parentContext.close();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user