You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2021/11/06 13:57:56 UTC
[httpcomponents-core] branch master updated: Use {@code } instead
.
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
The following commit(s) were added to refs/heads/master by this push:
new d64d51e Use {@code } instead <code>.
d64d51e is described below
commit d64d51e2690d0da1b14c27e8969ee38c573a8db7
Author: Arturo Bernal <ar...@gmail.com>
AuthorDate: Sat Nov 6 08:09:37 2021 +0100
Use {@code } instead <code>.
---
httpcore5/src/main/java/org/apache/hc/core5/http/HttpMessage.java | 4 ++--
.../src/main/java/org/apache/hc/core5/http/message/HeaderGroup.java | 6 +++---
.../main/java/org/apache/hc/core5/http/protocol/HttpContext.java | 4 ++--
httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/HttpMessage.java b/httpcore5/src/main/java/org/apache/hc/core5/http/HttpMessage.java
index ff39931..cc5bab1 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/HttpMessage.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/HttpMessage.java
@@ -102,7 +102,7 @@ public interface HttpMessage extends MessageHeaders {
* Removes a header from this message.
*
* @param header the header to remove.
- * @return <code>true</code> if a header was removed as a result of this call.
+ * @return {@code true} if a header was removed as a result of this call.
*/
boolean removeHeader(Header header);
@@ -110,7 +110,7 @@ public interface HttpMessage extends MessageHeaders {
* Removes all headers with a certain name from this message.
*
* @param name The name of the headers to remove.
- * @return <code>true</code> if any header was removed as a result of this call.
+ * @return {@code true} if any header was removed as a result of this call.
*/
boolean removeHeaders(String name);
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/message/HeaderGroup.java b/httpcore5/src/main/java/org/apache/hc/core5/http/message/HeaderGroup.java
index 0d04d35..465f963 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/message/HeaderGroup.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/message/HeaderGroup.java
@@ -87,7 +87,7 @@ public class HeaderGroup implements MessageHeaders, Serializable {
* Removes the first given header.
*
* @param header the header to remove
- * @return <code>true</code> if a header was removed as a result of this call.
+ * @return {@code true} if a header was removed as a result of this call.
*/
public boolean removeHeader(final Header header) {
if (header == null) {
@@ -112,7 +112,7 @@ public class HeaderGroup implements MessageHeaders, Serializable {
* Removes all headers that match the given header.
*
* @param header the header to remove
- * @return <code>true</code> if any header was removed as a result of this call.
+ * @return {@code true} if any header was removed as a result of this call.
*
* @since 5.0
*/
@@ -371,7 +371,7 @@ public class HeaderGroup implements MessageHeaders, Serializable {
* Removes all headers with a given name in this group.
*
* @param name the name of the headers to be removed.
- * @return <code>true</code> if any header was removed as a result of this call.
+ * @return {@code true} if any header was removed as a result of this call.
*
* @since 5.0
*/
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/HttpContext.java b/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/HttpContext.java
index 0d7db11..5dfb5d1 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/HttpContext.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/HttpContext.java
@@ -79,8 +79,8 @@ public interface HttpContext {
*
* @param id the attribute name.
* @param obj the attribute value.
- * @return the previous value associated with <code>id</code>, or
- * {@code null} if there was no mapping for <code>id</code>.
+ * @return the previous value associated with {@code id}, or
+ * {@code null} if there was no mapping for {@code id}.
*/
Object setAttribute(String id, Object obj);
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java b/httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java
index bf0ba4a..a947dba 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java
@@ -48,7 +48,7 @@ public class TimeValue implements Comparable<TimeValue> {
static final int INT_UNDEFINED = -1;
/**
- * A constant holding the maximum value a {@code TimeValue} can have: <code>Long.MAX_VALUE</code> days.
+ * A constant holding the maximum value a {@code TimeValue} can have: {@code Long.MAX_VALUE} days.
*/
public static final TimeValue MAX_VALUE = ofDays(Long.MAX_VALUE);