From 15c154c8ac6cb4ab934cdc723cf0b174d43c5073 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Mon, 18 Oct 2010 20:13:01 +0000 Subject: [PATCH] Simplify and eliminate boxing warnings git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1023978 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/http/conn/routing/TestHttpRoute.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/httpclient/src/test/java/org/apache/http/conn/routing/TestHttpRoute.java b/httpclient/src/test/java/org/apache/http/conn/routing/TestHttpRoute.java index 8fa602554..b7e7cd1a5 100644 --- a/httpclient/src/test/java/org/apache/http/conn/routing/TestHttpRoute.java +++ b/httpclient/src/test/java/org/apache/http/conn/routing/TestHttpRoute.java @@ -105,12 +105,9 @@ public class TestHttpRoute { PROXY3, route.getHopTarget(2)); Assert.assertEquals("wrong hop 3", TARGET1, route.getHopTarget(3)); - Assert.assertEquals("wrong flag: secured", - false, route.isSecure()); - Assert.assertEquals("wrong flag: tunnelled", - false, route.isTunnelled()); - Assert.assertEquals("wrong flag: layered", - false, route.isLayered()); + Assert.assertFalse("wrong flag: secured", route.isSecure()); + Assert.assertFalse("wrong flag: tunnelled", route.isTunnelled()); + Assert.assertFalse("wrong flag: layered", route.isLayered()); String routestr = route.toString(); Assert.assertTrue("missing target in toString",