You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2019/02/06 19:32:33 UTC

[httpcomponents-core] branch master updated: Use final.

This is an automated email from the ASF dual-hosted git repository.

ggregory 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 99b6f6a  Use final.
99b6f6a is described below

commit 99b6f6a02f3bccd34bb1c25699ee24884ebc1a7c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Feb 6 14:32:31 2019 -0500

    Use final.
---
 httpcore5/src/main/java/org/apache/hc/core5/net/Host.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/httpcore5/src/main/java/org/apache/hc/core5/net/Host.java b/httpcore5/src/main/java/org/apache/hc/core5/net/Host.java
index d8538e2..f03b790 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/net/Host.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/net/Host.java
@@ -60,7 +60,7 @@ public final class Host implements NamedEndpoint, Serializable {
     public static Host create(final String s) throws URISyntaxException {
         Args.notEmpty(s, "HTTP Host");
         final int portIdx = s.lastIndexOf(":");
-        int port;
+        final int port;
         if (portIdx > 0) {
             try {
                 port = Integer.parseInt(s.substring(portIdx + 1));