hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1757440 - /httpcomponents/httpcore/trunk/httpcore5/src/test/java/org/apache/hc/core5/http/protocol/TestUriPatternMatcher.java
Date Tue, 23 Aug 2016 22:04:04 GMT
Author: ggregory
Date: Tue Aug 23 22:04:04 2016
New Revision: 1757440

URL: http://svn.apache.org/viewvc?rev=1757440&view=rev
Log:
Use final.

Modified:
    httpcomponents/httpcore/trunk/httpcore5/src/test/java/org/apache/hc/core5/http/protocol/TestUriPatternMatcher.java

Modified: httpcomponents/httpcore/trunk/httpcore5/src/test/java/org/apache/hc/core5/http/protocol/TestUriPatternMatcher.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore5/src/test/java/org/apache/hc/core5/http/protocol/TestUriPatternMatcher.java?rev=1757440&r1=1757439&r2=1757440&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore5/src/test/java/org/apache/hc/core5/http/protocol/TestUriPatternMatcher.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore5/src/test/java/org/apache/hc/core5/http/protocol/TestUriPatternMatcher.java
Tue Aug 23 22:04:04 2016
@@ -133,9 +133,7 @@ public class TestUriPatternMatcher {
         matcher.register("/ma*", h1);
         matcher.register("*tch", h2);
 
-        Object h;
-
-        h = matcher.lookup("/match");
+        final Object h = matcher.lookup("/match");
         Assert.assertNotNull(h);
         Assert.assertTrue(h1 == h);
     }



Mime
View raw message