diff options
author | Claude Brisson <claude@renegat.net> | 2021-02-25 19:35:49 +0100 |
---|---|---|
committer | Claude Brisson <claude@renegat.net> | 2021-02-25 19:35:49 +0100 |
commit | 836d28fa2e3884c72e20d7f42941c58031416b18 (patch) | |
tree | 3687417c75794958121065a9f9e4ec3245ef2a7b /velocity-engine-core/src/main/java/org/apache/velocity/runtime/directive/Evaluate.java | |
parent | 746440121f2006e68e154aef91d98557a681b196 (diff) | |
download | apache-velocity-engine-836d28fa2e3884c72e20d7f42941c58031416b18.tar.gz |
A lot of almost purely cosmetic code cleanups
Diffstat (limited to 'velocity-engine-core/src/main/java/org/apache/velocity/runtime/directive/Evaluate.java')
-rw-r--r-- | velocity-engine-core/src/main/java/org/apache/velocity/runtime/directive/Evaluate.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/directive/Evaluate.java b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/directive/Evaluate.java index c261ba6e..89ccdb6b 100644 --- a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/directive/Evaluate.java +++ b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/directive/Evaluate.java @@ -51,6 +51,7 @@ public class Evaluate extends Directive * Return name of this directive. * @return The name of this directive. */ + @Override public String getName() { return "evaluate"; @@ -60,6 +61,7 @@ public class Evaluate extends Directive * Return type of this directive. * @return The type of this directive. */ + @Override public int getType() { return LINE; @@ -72,13 +74,14 @@ public class Evaluate extends Directive * @param node * @throws TemplateInitException */ + @Override public void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws TemplateInitException { super.init( rs, context, node ); - /** + /* * Check that there is exactly one argument and it is a string or reference. */ @@ -134,8 +137,9 @@ public class Evaluate extends Directive * @throws ParseErrorException * @throws MethodInvocationException */ + @Override public boolean render(InternalContextAdapter context, Writer writer, - Node node) throws IOException, ResourceNotFoundException, + Node node) throws IOException, ResourceNotFoundException, ParseErrorException, MethodInvocationException { |