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 2020/11/24 20:33:25 UTC

[httpcomponents-client] 07/07: Use a 'L' instead of 'l' to make long literals more readable.

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

ggregory pushed a commit to branch 4.5.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git

commit ca9f16ce34ec74081598e57dfec88ec839388280
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Nov 23 12:43:58 2020 -0500

    Use a 'L' instead of 'l' to make long literals more readable.
---
 .../java/org/apache/http/osgi/impl/TestPropertiesUtils.java  | 12 ++++++------
 .../main/java/org/apache/http/impl/auth/NTLMEngineImpl.java  |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/httpclient-osgi/src/test/java/org/apache/http/osgi/impl/TestPropertiesUtils.java b/httpclient-osgi/src/test/java/org/apache/http/osgi/impl/TestPropertiesUtils.java
index 60f0b56..6b62fe3 100644
--- a/httpclient-osgi/src/test/java/org/apache/http/osgi/impl/TestPropertiesUtils.java
+++ b/httpclient-osgi/src/test/java/org/apache/http/osgi/impl/TestPropertiesUtils.java
@@ -99,12 +99,12 @@ public final class TestPropertiesUtils {
 
     @Test
     public void toLong() {
-        assertConverted(123l, null, long.class, 123l);
-        assertConverted(123l, null, Long.class, 123l);
-        assertConverted(456l, "456", long.class, null);
-        assertConverted(456l, "456", Long.class, null);
-        assertConverted(789l, "not a long", long.class, 789l);
-        assertConverted(789l, "not a long", Long.class, 789l);
+        assertConverted(123L, null, long.class, 123L);
+        assertConverted(123L, null, Long.class, 123L);
+        assertConverted(456L, "456", long.class, null);
+        assertConverted(456L, "456", Long.class, null);
+        assertConverted(789L, "not a long", long.class, 789L);
+        assertConverted(789L, "not a long", Long.class, 789L);
     }
 
     @Test
diff --git a/httpclient/src/main/java/org/apache/http/impl/auth/NTLMEngineImpl.java b/httpclient/src/main/java/org/apache/http/impl/auth/NTLMEngineImpl.java
index 23fcfc0..3c3b859 100644
--- a/httpclient/src/main/java/org/apache/http/impl/auth/NTLMEngineImpl.java
+++ b/httpclient/src/main/java/org/apache/http/impl/auth/NTLMEngineImpl.java
@@ -433,7 +433,7 @@ final class NTLMEngineImpl implements NTLMEngine {
         public byte[] getTimestamp() {
             if (timestamp == null) {
                 long time = this.currentTime;
-                time += 11644473600000l; // milliseconds from January 1, 1601 -> epoch.
+                time += 11644473600000L; // milliseconds from January 1, 1601 -> epoch.
                 time *= 10000; // tenths of a microsecond.
                 // convert to little-endian byte array.
                 timestamp = new byte[8];