hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1769906 - /httpcomponents/httpcore/trunk/httpcore5/src/test/java/org/apache/hc/core5/http/TestHttpVersion.java
Date Wed, 16 Nov 2016 02:35:28 GMT
Author: ggregory
Date: Wed Nov 16 02:35:28 2016
New Revision: 1769906

URL: http://svn.apache.org/viewvc?rev=1769906&view=rev
Log:
Update for deprecation in Java 9. Use Float cache.

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

Modified: httpcomponents/httpcore/trunk/httpcore5/src/test/java/org/apache/hc/core5/http/TestHttpVersion.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore5/src/test/java/org/apache/hc/core5/http/TestHttpVersion.java?rev=1769906&r1=1769905&r2=1769906&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore5/src/test/java/org/apache/hc/core5/http/TestHttpVersion.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore5/src/test/java/org/apache/hc/core5/http/TestHttpVersion.java
Wed Nov 16 02:35:28 2016
@@ -68,7 +68,7 @@ public class TestHttpVersion {
         Assert.assertTrue(ver1.equals(ver1));
         Assert.assertTrue(ver1.equals(ver2));
 
-        Assert.assertFalse(ver1.equals(new Float(1.1)));
+        Assert.assertFalse(ver1.equals(Float.valueOf(1.1f)));
 
         Assert.assertTrue((new HttpVersion(0, 9)).equals(HttpVersion.HTTP_0_9));
         Assert.assertTrue((new HttpVersion(1, 0)).equals(HttpVersion.HTTP_1_0));



Mime
View raw message