diff options
author | Simone Bordet | 2014-06-25 09:28:22 +0000 |
---|---|---|
committer | Simone Bordet | 2014-06-25 10:26:45 +0000 |
commit | 3ff4195dbc3a5d2767e6ba1978d090ea41dd3d99 (patch) | |
tree | 980666efb042f974120d936431e6c245039af30b /jetty-http/src | |
parent | 28ad689bcb97a6dc5edf121a1a047177e8f93168 (diff) | |
download | org.eclipse.jetty.project-3ff4195dbc3a5d2767e6ba1978d090ea41dd3d99.tar.gz org.eclipse.jetty.project-3ff4195dbc3a5d2767e6ba1978d090ea41dd3d99.tar.xz org.eclipse.jetty.project-3ff4195dbc3a5d2767e6ba1978d090ea41dd3d99.zip |
Guarded calls to LOG.debug() with if (LOG.isDebugEnabled()) to reduce allocation of varargs Object[].
Diffstat (limited to 'jetty-http/src')
-rw-r--r-- | jetty-http/src/main/java/org/eclipse/jetty/http/HttpGenerator.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/jetty-http/src/main/java/org/eclipse/jetty/http/HttpGenerator.java b/jetty-http/src/main/java/org/eclipse/jetty/http/HttpGenerator.java index a51e4ba7b8..b3a3b37c45 100644 --- a/jetty-http/src/main/java/org/eclipse/jetty/http/HttpGenerator.java +++ b/jetty-http/src/main/java/org/eclipse/jetty/http/HttpGenerator.java @@ -287,7 +287,8 @@ public class HttpGenerator { if (BufferUtil.hasContent(content)) { - LOG.debug("discarding content in COMPLETING"); + if (LOG.isDebugEnabled()) + LOG.debug("discarding content in COMPLETING"); BufferUtil.clear(content); } @@ -310,7 +311,8 @@ public class HttpGenerator case END: if (BufferUtil.hasContent(content)) { - LOG.debug("discarding content in COMPLETING"); + if (LOG.isDebugEnabled()) + LOG.debug("discarding content in COMPLETING"); BufferUtil.clear(content); } return Result.DONE; @@ -436,7 +438,8 @@ public class HttpGenerator { if (BufferUtil.hasContent(content)) { - LOG.debug("discarding content in COMPLETING"); + if (LOG.isDebugEnabled()) + LOG.debug("discarding content in COMPLETING"); BufferUtil.clear(content); } @@ -462,7 +465,8 @@ public class HttpGenerator case END: if (BufferUtil.hasContent(content)) { - LOG.debug("discarding content in COMPLETING"); + if (LOG.isDebugEnabled()) + LOG.debug("discarding content in COMPLETING"); BufferUtil.clear(content); } return Result.DONE; |