Skip to content

Commit 9dce7a8

Browse files
authored
Merge pull request TooTallNate#1385 from TooTallNate/javadoc-tt-fix
2 parents a1ab3dc + 1ecae0e commit 9dce7a8

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

src/main/java/org/java_websocket/WebSocketAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void onWebsocketPong(WebSocket conn, Framedata f) {
9999
* Default implementation for onPreparePing, returns a (cached) PingFrame that has no application
100100
* data.
101101
*
102-
* @param conn The <tt>WebSocket</tt> connection from which the ping frame will be sent.
102+
* @param conn The <code>WebSocket</code> connection from which the ping frame will be sent.
103103
* @return PingFrame to be sent.
104104
* @see org.java_websocket.WebSocketListener#onPreparePing(WebSocket)
105105
*/

src/main/java/org/java_websocket/WebSocketListener.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
import org.java_websocket.handshake.ServerHandshakeBuilder;
3939

4040
/**
41-
* Implemented by <tt>WebSocketClient</tt> and <tt>WebSocketServer</tt>. The methods within are
42-
* called by <tt>WebSocket</tt>. Almost every method takes a first parameter conn which represents
41+
* Implemented by <code>WebSocketClient</code> and <code>WebSocketServer</code>. The methods within are
42+
* called by <code>WebSocket</code>. Almost every method takes a first parameter conn which represents
4343
* the source of the respective event.
4444
*/
4545
public interface WebSocketListener {
@@ -86,15 +86,15 @@ void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
8686
/**
8787
* Called when an entire text frame has been received. Do whatever you want here...
8888
*
89-
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
89+
* @param conn The <code>WebSocket</code> instance this event is occurring on.
9090
* @param message The UTF-8 decoded message that was received.
9191
*/
9292
void onWebsocketMessage(WebSocket conn, String message);
9393

9494
/**
9595
* Called when an entire binary frame has been received. Do whatever you want here...
9696
*
97-
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
97+
* @param conn The <code>WebSocket</code> instance this event is occurring on.
9898
* @param blob The binary message that was received.
9999
*/
100100
void onWebsocketMessage(WebSocket conn, ByteBuffer blob);
@@ -103,16 +103,16 @@ void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
103103
* Called after <var>onHandshakeReceived</var> returns <var>true</var>. Indicates that a complete
104104
* WebSocket connection has been established, and we are ready to send/receive data.
105105
*
106-
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
106+
* @param conn The <code>WebSocket</code> instance this event is occurring on.
107107
* @param d The handshake of the websocket instance
108108
*/
109109
void onWebsocketOpen(WebSocket conn, Handshakedata d);
110110

111111
/**
112-
* Called after <tt>WebSocket#close</tt> is explicity called, or when the other end of the
112+
* Called after <code>WebSocket#close</code> is explicity called, or when the other end of the
113113
* WebSocket connection is closed.
114114
*
115-
* @param ws The <tt>WebSocket</tt> instance this event is occurring on.
115+
* @param ws The <code>WebSocket</code> instance this event is occurring on.
116116
* @param code The codes can be looked up here: {@link CloseFrame}
117117
* @param reason Additional information string
118118
* @param remote Returns whether or not the closing of the connection was initiated by the remote
@@ -123,7 +123,7 @@ void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
123123
/**
124124
* Called as soon as no further frames are accepted
125125
*
126-
* @param ws The <tt>WebSocket</tt> instance this event is occurring on.
126+
* @param ws The <code>WebSocket</code> instance this event is occurring on.
127127
* @param code The codes can be looked up here: {@link CloseFrame}
128128
* @param reason Additional information string
129129
* @param remote Returns whether or not the closing of the connection was initiated by the remote
@@ -134,7 +134,7 @@ void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
134134
/**
135135
* send when this peer sends a close handshake
136136
*
137-
* @param ws The <tt>WebSocket</tt> instance this event is occurring on.
137+
* @param ws The <code>WebSocket</code> instance this event is occurring on.
138138
* @param code The codes can be looked up here: {@link CloseFrame}
139139
* @param reason Additional information string
140140
*/
@@ -144,7 +144,7 @@ void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
144144
* Called if an exception worth noting occurred. If an error causes the connection to fail onClose
145145
* will be called additionally afterwards.
146146
*
147-
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
147+
* @param conn The <code>WebSocket</code> instance this event is occurring on.
148148
* @param ex The exception that occurred. <br> Might be null if the exception is not related to
149149
* any specific connection. For example if the server port could not be bound.
150150
*/
@@ -153,7 +153,7 @@ void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
153153
/**
154154
* Called a ping frame has been received. This method must send a corresponding pong by itself.
155155
*
156-
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
156+
* @param conn The <code>WebSocket</code> instance this event is occurring on.
157157
* @param f The ping frame. Control frames may contain payload.
158158
*/
159159
void onWebsocketPing(WebSocket conn, Framedata f);
@@ -162,15 +162,15 @@ void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
162162
* Called just before a ping frame is sent, in order to allow users to customize their ping frame
163163
* data.
164164
*
165-
* @param conn The <tt>WebSocket</tt> connection from which the ping frame will be sent.
165+
* @param conn The <code>WebSocket</code> connection from which the ping frame will be sent.
166166
* @return PingFrame to be sent.
167167
*/
168168
PingFrame onPreparePing(WebSocket conn);
169169

170170
/**
171171
* Called when a pong frame is received.
172172
*
173-
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
173+
* @param conn The <code>WebSocket</code> instance this event is occurring on.
174174
* @param f The pong frame. Control frames may contain payload.
175175
**/
176176
void onWebsocketPong(WebSocket conn, Framedata f);
@@ -179,19 +179,19 @@ void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
179179
* This method is used to inform the selector thread that there is data queued to be written to
180180
* the socket.
181181
*
182-
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
182+
* @param conn The <code>WebSocket</code> instance this event is occurring on.
183183
*/
184184
void onWriteDemand(WebSocket conn);
185185

186186
/**
187-
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
187+
* @param conn The <code>WebSocket</code> instance this event is occurring on.
188188
* @return Returns the address of the endpoint this socket is bound to.
189189
* @see WebSocket#getLocalSocketAddress()
190190
*/
191191
InetSocketAddress getLocalSocketAddress(WebSocket conn);
192192

193193
/**
194-
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
194+
* @param conn The <code>WebSocket</code> instance this event is occurring on.
195195
* @return Returns the address of the endpoint this socket is connected to, or{@code null} if it
196196
* is unconnected.
197197
* @see WebSocket#getRemoteSocketAddress()

src/main/java/org/java_websocket/server/WebSocketServer.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
import org.slf4j.LoggerFactory;
7272

7373
/**
74-
* <tt>WebSocketServer</tt> is an abstract class that only takes care of the
74+
* <code>WebSocketServer</code> is an abstract class that only takes care of the
7575
* HTTP handshake portion of WebSockets. It's up to a subclass to add functionality/purpose to the
7676
* server.
7777
*/
@@ -183,7 +183,7 @@ public WebSocketServer(InetSocketAddress address, int decodercount, List<Draft>
183183

184184
/**
185185
* Creates a WebSocketServer that will attempt to bind/listen on the given <var>address</var>, and
186-
* comply with <tt>Draft</tt> version <var>draft</var>.
186+
* comply with <code>Draft</code> version <var>draft</var>.
187187
*
188188
* @param address The address (host:port) this server should listen on.
189189
* @param decodercount The number of {@link WebSocketWorker}s that will be used to process
@@ -872,15 +872,15 @@ public InetSocketAddress getRemoteSocketAddress(WebSocket conn) {
872872
* Called after an opening handshake has been performed and the given websocket is ready to be
873873
* written on.
874874
*
875-
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
875+
* @param conn The <code>WebSocket</code> instance this event is occurring on.
876876
* @param handshake The handshake of the websocket instance
877877
*/
878878
public abstract void onOpen(WebSocket conn, ClientHandshake handshake);
879879

880880
/**
881881
* Called after the websocket connection has been closed.
882882
*
883-
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
883+
* @param conn The <code>WebSocket</code> instance this event is occurring on.
884884
* @param code The codes can be looked up here: {@link CloseFrame}
885885
* @param reason Additional information string
886886
* @param remote Returns whether or not the closing of the connection was initiated by the remote
@@ -891,7 +891,7 @@ public InetSocketAddress getRemoteSocketAddress(WebSocket conn) {
891891
/**
892892
* Callback for string messages received from the remote host
893893
*
894-
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
894+
* @param conn The <code>WebSocket</code> instance this event is occurring on.
895895
* @param message The UTF-8 decoded message that was received.
896896
* @see #onMessage(WebSocket, ByteBuffer)
897897
**/
@@ -919,7 +919,7 @@ public InetSocketAddress getRemoteSocketAddress(WebSocket conn) {
919919
/**
920920
* Callback for binary messages received from the remote host
921921
*
922-
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
922+
* @param conn The <code>WebSocket</code> instance this event is occurring on.
923923
* @param message The binary message that was received.
924924
* @see #onMessage(WebSocket, ByteBuffer)
925925
**/

src/main/java/org/java_websocket/util/Base64.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* <br>
3636
* <code>byte[] myByteArray = Base64.decode( encoded );</code>
3737
*
38-
* <p>The <tt>options</tt> parameter, which appears in a few places, is used to pass
38+
* <p>The <code>options</code> parameter, which appears in a few places, is used to pass
3939
* several pieces of information to the encoder. In the "higher level" methods such as encodeBytes(
4040
* bytes, options ) the options parameter can be used to indicate such things as first gzipping the
4141
* bytes before encoding them, not inserting linefeeds, and encoding using the URL-safe and Ordered
@@ -140,9 +140,9 @@
140140
* when data that's being decoded is gzip-compressed and will decompress it
141141
* automatically. Generally things are cleaner. You'll probably have to
142142
* change some method calls that you were making to support the new
143-
* options format (<tt>int</tt>s that you "OR" together).</li>
143+
* options format (<code>int</code>s that you "OR" together).</li>
144144
* <li>v1.5.1 - Fixed bug when decompressing and decoding to a
145-
* byte[] using <tt>decode( String s, boolean gzipCompressed )</tt>.
145+
* byte[] using <code>decode( String s, boolean gzipCompressed )</code>.
146146
* Added the ability to "suspend" encoding in the Output Stream so
147147
* you can turn on and off the encoding if you need to embed base64
148148
* data in an otherwise "normal" stream (like an XML file).</li>
@@ -873,7 +873,7 @@ else if (source[srcOffset + 3] == EQUALS_SIGN) {
873873

874874
/**
875875
* A {@link Base64.OutputStream} will write data to another
876-
* <tt>java.io.OutputStream</tt>, given in the constructor,
876+
* <code>java.io.OutputStream</code>, given in the constructor,
877877
* and encode/decode to/from Base64 notation on the fly.
878878
*
879879
* @see Base64
@@ -895,7 +895,7 @@ public static class OutputStream extends java.io.FilterOutputStream {
895895
/**
896896
* Constructs a {@link Base64.OutputStream} in ENCODE mode.
897897
*
898-
* @param out the <tt>java.io.OutputStream</tt> to which data will be written.
898+
* @param out the <code>java.io.OutputStream</code> to which data will be written.
899899
* @since 1.3
900900
*/
901901
public OutputStream(java.io.OutputStream out) {
@@ -914,7 +914,7 @@ public OutputStream(java.io.OutputStream out) {
914914
* <p>
915915
* Example: <code>new Base64.OutputStream( out, Base64.ENCODE )</code>
916916
*
917-
* @param out the <tt>java.io.OutputStream</tt> to which data will be written.
917+
* @param out the <code>java.io.OutputStream</code> to which data will be written.
918918
* @param options Specified options.
919919
* @see Base64#ENCODE
920920
* @see Base64#DO_BREAK_LINES

0 commit comments

Comments
 (0)