You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ju...@apache.org on 2021/12/02 21:55:25 UTC
[jspwiki] 07/26: Fix typo + suppress unchecked cast
This is an automated email from the ASF dual-hosted git repository.
juanpablo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jspwiki.git
commit 1835a1d7cce08afe684b4131d1001618fbdf7a02
Author: Juan Pablo Santos RodrÃguez <ju...@gmail.com>
AuthorDate: Sun Nov 28 23:14:46 2021 +0100
Fix typo + suppress unchecked cast
---
.../main/java/org/apache/wiki/api/filters/FilterSupportOperations.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/jspwiki-api/src/main/java/org/apache/wiki/api/filters/FilterSupportOperations.java b/jspwiki-api/src/main/java/org/apache/wiki/api/filters/FilterSupportOperations.java
index 9365579..69b000b 100644
--- a/jspwiki-api/src/main/java/org/apache/wiki/api/filters/FilterSupportOperations.java
+++ b/jspwiki-api/src/main/java/org/apache/wiki/api/filters/FilterSupportOperations.java
@@ -31,7 +31,7 @@ class FilterSupportOperations {
private static final Logger LOG = LogManager.getLogger( FilterSupportOperations.class );
/**
- * Checks if a given object is using old, non public API for a given Filter. This check is two-fold:
+ * Checks if a given object is using old, non-public API for a given Filter. This check is two-fold:
* <ul>
* <li>if the page filter class name starts with JSPWiki base package we assume we're using latest JSPWiki, and the public API</li>
* <li>we try to execute the old, non public API equivalent method passed as parameters. If it exists, well, it is using the
@@ -59,6 +59,7 @@ class FilterSupportOperations {
return null;
}
+ @SuppressWarnings( "unchecked" )
static < R > R executePageFilterPhase( final Supplier< R > s, final Method m, final PageFilter pf, final Object... params ) {
if( m != null ) {
try {