Skip to content

Commit 2a76644

Browse files
committed
optimize example
1 parent 8a815e0 commit 2a76644

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/org/apache/tomcat/util/net/TLSClientHelloExtractor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,14 +510,14 @@ public enum ExtractorResult {
510510
* Allows the HTTP response to be changed.
511511
* <pre>
512512
* {@code
513-
* new ResponseCustomizer() {
513+
* TLSClientHelloExtractor.RESPONSE_CUSTOMIZER = new ResponseCustomizer() {
514514
* @Override
515515
* public byte[] customize(ByteBuffer netInBuffer) {
516516
* return ("HTTP/1.1 302 \r\n" +
517517
* "Location: https://www.example.org/index.html\r\n" +
518518
* "\r\n").getBytes(StandardCharsets.UTF_8);
519519
* }
520-
* }
520+
* };
521521
* }
522522
* </pre>
523523
*/

0 commit comments

Comments
 (0)