commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject [5/6] commons-pool git commit: Fix autoboxing warnings
Date Mon, 04 Dec 2017 15:00:30 GMT
Fix autoboxing warnings

Project: http://git-wip-us.apache.org/repos/asf/commons-pool/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-pool/commit/8cc7962b
Tree: http://git-wip-us.apache.org/repos/asf/commons-pool/tree/8cc7962b
Diff: http://git-wip-us.apache.org/repos/asf/commons-pool/diff/8cc7962b

Branch: refs/heads/master
Commit: 8cc7962b287140928866ea32451b0906bdc01146
Parents: a80613b
Author: mark <mark@study04.dev.local>
Authored: Mon Dec 4 14:59:41 2017 +0000
Committer: mark <mark@study04.dev.local>
Committed: Mon Dec 4 14:59:41 2017 +0000

----------------------------------------------------------------------
 .../org/apache/commons/pool2/impl/SecurityManagerCallStack.java    | 2 +-
 .../java/org/apache/commons/pool2/impl/ThrowableCallStack.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-pool/blob/8cc7962b/src/main/java/org/apache/commons/pool2/impl/SecurityManagerCallStack.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/pool2/impl/SecurityManagerCallStack.java b/src/main/java/org/apache/commons/pool2/impl/SecurityManagerCallStack.java
index 83110d4..7ffff10 100644
--- a/src/main/java/org/apache/commons/pool2/impl/SecurityManagerCallStack.java
+++ b/src/main/java/org/apache/commons/pool2/impl/SecurityManagerCallStack.java
@@ -71,7 +71,7 @@ public class SecurityManagerCallStack implements CallStack {
             message = messageFormat;
         } else {
             synchronized (dateFormat) {
-                message = dateFormat.format(snapshotRef.timestamp);
+                message = dateFormat.format(Long.valueOf(snapshotRef.timestamp));
             }
         }
         writer.println(message);

http://git-wip-us.apache.org/repos/asf/commons-pool/blob/8cc7962b/src/main/java/org/apache/commons/pool2/impl/ThrowableCallStack.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/pool2/impl/ThrowableCallStack.java b/src/main/java/org/apache/commons/pool2/impl/ThrowableCallStack.java
index 16a4b0a..3f04e91 100644
--- a/src/main/java/org/apache/commons/pool2/impl/ThrowableCallStack.java
+++ b/src/main/java/org/apache/commons/pool2/impl/ThrowableCallStack.java
@@ -58,7 +58,7 @@ public class ThrowableCallStack implements CallStack {
             message = messageFormat;
         } else {
             synchronized (dateFormat) {
-                message = dateFormat.format(snapshotRef.timestamp);
+                message = dateFormat.format(Long.valueOf(snapshotRef.timestamp));
             }
         }
         writer.println(message);


Mime
View raw message