diff --git a/src/java.base/share/classes/javax/net/ssl/SSLEngine.java b/src/java.base/share/classes/javax/net/ssl/SSLEngine.java index fff674ca1fd..b3007b2a9a1 100644 --- a/src/java.base/share/classes/javax/net/ssl/SSLEngine.java +++ b/src/java.base/share/classes/javax/net/ssl/SSLEngine.java @@ -339,7 +339,7 @@ import java.util.function.BiFunction; * The ApplicationProtocol {@code String} values returned by the methods * in this class are in the network byte representation sent by the peer. * The bytes could be directly compared, or converted to its Unicode - * {code String} format for comparison. + * {@code String} format for comparison. * *
  *     String networkString = sslEngine.getHandshakeApplicationProtocol();
diff --git a/src/java.base/share/classes/javax/net/ssl/SSLSocket.java b/src/java.base/share/classes/javax/net/ssl/SSLSocket.java
index 7f44a4fe6c5..84e5be716fe 100644
--- a/src/java.base/share/classes/javax/net/ssl/SSLSocket.java
+++ b/src/java.base/share/classes/javax/net/ssl/SSLSocket.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -133,7 +133,7 @@ import java.util.function.BiFunction;
  * 

The ApplicationProtocol {@code String} values returned by the methods * in this class are in the network byte representation sent by the peer. * The bytes could be directly compared, or converted to its Unicode - * {code String} format for comparison. + * {@code String} format for comparison. * *

  *     String networkString = sslSocket.getHandshakeApplicationProtocol();