Avoid name hiding

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1571364 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2014-02-24 17:30:30 +00:00
parent f18074b586
commit c06d7ae10c
1 changed files with 2 additions and 2 deletions

View File

@ -324,9 +324,9 @@ public class TestHttpCacheEntry {
@Test
public void testValidDateHeaderIsParsed() {
final long now = System.currentTimeMillis();
final long nowMs = System.currentTimeMillis();
// round down to nearest second to make comparison easier
final Date date = new Date(now - (now % 1000L));
final Date date = new Date(nowMs - (nowMs % 1000L));
final Header[] headers = new Header[] { new BasicHeader("Date", DateUtils.formatDate(date)) };
entry = new HttpCacheEntry(new Date(), new Date(), statusLine,
headers, mockResource);