You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by el...@apache.org on 2013/05/12 00:55:34 UTC
[2/4] git commit: Made some constants final
Made some constants final
Project: http://git-wip-us.apache.org/repos/asf/mina/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina/commit/4da64558
Tree: http://git-wip-us.apache.org/repos/asf/mina/tree/4da64558
Diff: http://git-wip-us.apache.org/repos/asf/mina/diff/4da64558
Branch: refs/heads/trunk
Commit: 4da6455824c1d760081066a612858da092e4d87e
Parents: 976e151
Author: Emmanuel Lécharny <el...@apache.org>
Authored: Sun May 12 00:48:50 2013 +0200
Committer: Emmanuel Lécharny <el...@apache.org>
Committed: Sun May 12 00:48:50 2013 +0200
----------------------------------------------------------------------
.../service/idlechecker/IndexedIdleChecker.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mina/blob/4da64558/core/src/main/java/org/apache/mina/service/idlechecker/IndexedIdleChecker.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/mina/service/idlechecker/IndexedIdleChecker.java b/core/src/main/java/org/apache/mina/service/idlechecker/IndexedIdleChecker.java
index 458ed7e..93f59d9 100644
--- a/core/src/main/java/org/apache/mina/service/idlechecker/IndexedIdleChecker.java
+++ b/core/src/main/java/org/apache/mina/service/idlechecker/IndexedIdleChecker.java
@@ -57,9 +57,9 @@ import org.slf4j.LoggerFactory;
*/
public class IndexedIdleChecker implements IdleChecker {
- private static int MAX_IDLE_TIME_IN_SEC = 60 * 60; // 1 hour max idle
+ private static final int MAX_IDLE_TIME_IN_SEC = 60 * 60; // 1 hour max idle
- private static long MAX_IDLE_TIME_IN_MS = MAX_IDLE_TIME_IN_SEC * 1000L; // 1 hour max idle
+ private static final long MAX_IDLE_TIME_IN_MS = MAX_IDLE_TIME_IN_SEC * 1000L; // 1 hour max idle
private static final Logger LOG = LoggerFactory.getLogger(IndexedIdleChecker.class);
@@ -180,7 +180,7 @@ public class IndexedIdleChecker implements IdleChecker {
if (LOG.isDebugEnabled()) {
LOG.debug("checking idle time, last = {}, now = {}, delta = {}", new Object[] { lastCheckTimeMs, timeMs,
- delta });
+ delta });
}
if (delta < 1000) {