aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
diff options
context:
space:
mode:
authorClaude Brisson <cbrisson@apache.org>2017-02-20 08:41:00 +0000
committerClaude Brisson <cbrisson@apache.org>2017-02-20 08:41:00 +0000
commit95aeb9d5545f1474bc26530d906c3d083826673c (patch)
tree2a3a04980af70b9df7be0c6a179673e15c49c48d /velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
parent2c682215f06d3a58e8246494df506ee0ba27fba9 (diff)
downloadapache-velocity-engine-95aeb9d5545f1474bc26530d906c3d083826673c.tar.gz
[engine] several coding style fixes (Michael remarks)
git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@1783725 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java')
-rw-r--r--velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
index 1e9fb2ec..4e4798a2 100644
--- a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
+++ b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
@@ -1220,7 +1220,7 @@ public class RuntimeInstance implements RuntimeConstants, RuntimeServices
/*
* if we couldn't get a parser from the pool make one and log it.
*/
- log.info("Runtime : ran out of parsers. Creating a new one. "
+ log.info("Runtime: ran out of parsers. Creating a new one. "
+ " Please increment the parser.pool.size property."
+ " The current value is too small.");
parser = createNewParser();
@@ -1446,7 +1446,7 @@ public class RuntimeInstance implements RuntimeConstants, RuntimeServices
* Invokes a currently registered Velocimacro with the params provided
* and places the rendered stream into the writer.
* <br>
- * Note : currently only accepts args to the VM if they are in the context.
+ * Note: currently only accepts args to the VM if they are in the context.
* <br>
* Note: only macros in the global context can be called. This method doesn't find macros defined by
* templates during previous mergeTemplate calls if Velocity.VM_PERM_INLINE_LOCAL has been enabled.
@@ -1468,7 +1468,7 @@ public class RuntimeInstance implements RuntimeConstants, RuntimeServices
/* check necessary parameters */
if (vmName == null || context == null || writer == null)
{
- String msg = "RuntimeInstance.invokeVelocimacro() : invalid call : vmName, context, and writer must not be null";
+ String msg = "RuntimeInstance.invokeVelocimacro(): invalid call: vmName, context, and writer must not be null";
log.error(msg);
throw new NullPointerException(msg);
}
@@ -1486,7 +1486,7 @@ public class RuntimeInstance implements RuntimeConstants, RuntimeServices
/* does the VM exist? (only global scope is scanned so this doesn't find inline macros in templates) */
if (!isVelocimacro(vmName, null))
{
- String msg = "RuntimeInstance.invokeVelocimacro() : VM '" + vmName
+ String msg = "RuntimeInstance.invokeVelocimacro(): VM '" + vmName
+ "' is not registered.";
log.error(msg);
throw new VelocityException(msg);