Skip to content

Commit 596992c

Browse files
rstoyanchevjhoeller
authored andcommitted
Fix Javadoc typos
Closes gh-22261
1 parent b2ce550 commit 596992c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/EnableWebSocket.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@
2626

2727
/**
2828
* Add this annotation to an {@code @Configuration} class to configure
29-
* processing WebSocket requests:
29+
* processing WebSocket requests. A typical configuration would look like this:
3030
*
3131
* <pre class="code">
3232
* &#064;Configuration
@@ -49,7 +49,7 @@
4949
* registry.addHandler(echoWebSocketHandler(), "/echo").withSockJS();
5050
* }
5151
*
52-
* &#064;Bean
52+
* &#064;Override
5353
* public WebSocketHandler echoWebSocketHandler() {
5454
* return new EchoWebSocketHandler();
5555
* }

spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/EnableWebSocketMessageBroker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -50,7 +50,7 @@
5050
* registry.addEndpoint("/portfolio").withSockJS();
5151
* }
5252
*
53-
* &#064;Bean
53+
* &#064;Override
5454
* public void configureMessageBroker(MessageBrokerRegistry registry) {
5555
* registry.enableStompBrokerRelay("/queue/", "/topic/");
5656
* registry.setApplicationDestinationPrefixes("/app/");

0 commit comments

Comments
 (0)