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/exception | |
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/exception')
3 files changed, 8 insertions, 0 deletions
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/exception/MethodInvocationException.java b/velocity-engine-core/src/main/java/org/apache/velocity/exception/MethodInvocationException.java index a88b14b2..a47f6e92 100644 --- a/velocity-engine-core/src/main/java/org/apache/velocity/exception/MethodInvocationException.java +++ b/velocity-engine-core/src/main/java/org/apache/velocity/exception/MethodInvocationException.java @@ -126,6 +126,7 @@ public class MethodInvocationException extends VelocityException implements Exte * @see ExtendedParseException#getColumnNumber() * @since 1.5 */ + @Override public int getColumnNumber() { return columnNumber; @@ -135,6 +136,7 @@ public class MethodInvocationException extends VelocityException implements Exte * @see ExtendedParseException#getLineNumber() * @since 1.5 */ + @Override public int getLineNumber() { return lineNumber; @@ -144,6 +146,7 @@ public class MethodInvocationException extends VelocityException implements Exte * @see ExtendedParseException#getTemplateName() * @since 1.5 */ + @Override public String getTemplateName() { return templateName; @@ -153,6 +156,7 @@ public class MethodInvocationException extends VelocityException implements Exte * @see Exception#getMessage() * @since 1.5 */ + @Override public String getMessage() { StringBuilder message = new StringBuilder(); diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/exception/ParseErrorException.java b/velocity-engine-core/src/main/java/org/apache/velocity/exception/ParseErrorException.java index 34c9c264..e86d11fd 100644 --- a/velocity-engine-core/src/main/java/org/apache/velocity/exception/ParseErrorException.java +++ b/velocity-engine-core/src/main/java/org/apache/velocity/exception/ParseErrorException.java @@ -265,6 +265,7 @@ public class ParseErrorException extends VelocityException /** * Return our custom message if we have one, else return the default message */ + @Override public String getMessage() { if (msg != null) return msg; diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/exception/TemplateInitException.java b/velocity-engine-core/src/main/java/org/apache/velocity/exception/TemplateInitException.java index 20620cfe..20a60ec8 100644 --- a/velocity-engine-core/src/main/java/org/apache/velocity/exception/TemplateInitException.java +++ b/velocity-engine-core/src/main/java/org/apache/velocity/exception/TemplateInitException.java @@ -96,6 +96,7 @@ public class TemplateInitException extends VelocityException * Returns the Template name where this exception occurred. * @return the template name */ + @Override public String getTemplateName() { return templateName; @@ -105,6 +106,7 @@ public class TemplateInitException extends VelocityException * Returns the line number where this exception occurred. * @return the line number */ + @Override public int getLineNumber() { return line; @@ -114,6 +116,7 @@ public class TemplateInitException extends VelocityException * Returns the column number where this exception occurred. * @return the line number */ + @Override public int getColumnNumber() { return col; |