[java-shib-shared] branch main updated: Missing annotation.

Scott Cantor cantor.2 at osu.edu
Wed Jun 28 14:58:47 UTC 2023


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-shib-shared.

View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=6e0220d3679d76b95c98d2d1b703103bf068b610

The following commit(s) were added to refs/heads/main by this push:
     new 6e0220d3 Missing annotation.
6e0220d3 is described below

commit 6e0220d3679d76b95c98d2d1b703103bf068b610
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Jun 28 10:58:44 2023 -0400

    Missing annotation.
---
 .../src/main/java/net/shibboleth/shared/velocity/Template.java      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/shib-velocity/src/main/java/net/shibboleth/shared/velocity/Template.java b/shib-velocity/src/main/java/net/shibboleth/shared/velocity/Template.java
index a9339cbd..5487931c 100644
--- a/shib-velocity/src/main/java/net/shibboleth/shared/velocity/Template.java
+++ b/shib-velocity/src/main/java/net/shibboleth/shared/velocity/Template.java
@@ -167,7 +167,7 @@ public final class Template {
      * 
      * @return an instance of this class that can be used to evaluate the named template using the given engine
      */
-    public static Template fromTemplateName(@Nonnull final VelocityEngine engine,
+    @Nonnull public static Template fromTemplateName(@Nonnull final VelocityEngine engine,
             @Nonnull @NotEmpty final String templateName) {
         return fromTemplateName(engine, templateName, Charsets.US_ASCII);
     }
@@ -181,8 +181,8 @@ public final class Template {
      * 
      * @return an instance of this class that can be used to evaluate the named template using the given engine
      */
-    public static Template fromTemplateName(@Nonnull final VelocityEngine engine, @Nonnull @NotEmpty final String name,
-            @Nonnull final Charset encoding) {
+    @Nonnull public static Template fromTemplateName(@Nonnull final VelocityEngine engine,
+            @Nonnull @NotEmpty final String name, @Nonnull final Charset encoding) {
         final String trimmedName =
                 Constraint.isNotNull(StringSupport.trimOrNull(name), "Velocity template name can not be null or empty");
         Constraint.isNotNull(encoding, "Template encoding character set can not be null");

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list