Fix typo + suppress unchecked cast
@@ -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 {
