[prev in list] [next in list] [prev in thread] [next in thread]
List: httpcomponents-commits
Subject: [httpcomponents-core] 03/04: Fixed possible heap pollution from parameterized vararg type warnings
From: olegk () apache ! org
Date: 2019-05-20 13:52:35
Message-ID: 20190520135233.0118785D05 () gitbox ! apache ! org
[Download RAW message or body]
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
commit 6cfaa50b8e00a918ce2f0ed77d66730bdd4ccd15
Author: Oleg Kalnichevski <olegk@apache.org>
AuthorDate: Sun May 19 12:08:33 2019 +0200
Fixed possible heap pollution from parameterized vararg type warnings
---
.../main/java/org/apache/hc/core5/http/protocol/ChainBuilder.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/ChainBuilder.java \
b/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/ChainBuilder.java index \
9eaa282..d9d0e81 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/ChainBuilder.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/ChainBuilder.java
@@ -86,7 +86,8 @@ final class ChainBuilder<E> {
return this;
}
- public ChainBuilder<E> addAllFirst(final E... c) {
+ @SafeVarargs
+ public final ChainBuilder<E> addAllFirst(final E... c) {
if (c == null) {
return this;
}
@@ -106,7 +107,8 @@ final class ChainBuilder<E> {
return this;
}
- public ChainBuilder<E> addAllLast(final E... c) {
+ @SafeVarargs
+ public final ChainBuilder<E> addAllLast(final E... c) {
if (c == null) {
return this;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic