You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by bo...@apache.org on 2026/10/08 00:00:51 UTC
(grails-core) 04/09: style: name intentionally empty catch parameters ignored in grails-controllers
This is an automated email from the ASF dual-hosted git repository.
borinquenkid pushed a commit to branch 9.0.x-h7-improvement-phase3
in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit 58b54c0ae543f11df06292b058fe6bcc9b840aea
Author: Walter Duque de Estrada <wb...@mac.com>
AuthorDate: Wed Oct 7 18:01:33 2026 -0500
style: name intentionally empty catch parameters ignored in grails-controllers
CodeNarc EmptyCatchBlock only accepts an empty catch block whose parameter is
named ignored. Pure parameter renames, no behaviour change.
Co-Authored-By: Claude Sonnet 5.5 <no...@anthropic.com>
---
.../plugins/web/controllers/SecurityHeadersResponseWrapper.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grails-controllers/src/main/groovy/org/grails/plugins/web/controllers/SecurityHeadersResponseWrapper.groovy b/grails-controllers/src/main/groovy/org/grails/plugins/web/controllers/SecurityHeadersResponseWrapper.groovy
index 82a74116c2..4569372922 100644
--- a/grails-controllers/src/main/groovy/org/grails/plugins/web/controllers/SecurityHeadersResponseWrapper.groovy
+++ b/grails-controllers/src/main/groovy/org/grails/plugins/web/controllers/SecurityHeadersResponseWrapper.groovy
@@ -412,7 +412,7 @@ final class SecurityHeadersResponseWrapper extends HttpServletResponseWrapper {
return charset
}
}
- catch (IllegalArgumentException unsupported) {
+ catch (IllegalArgumentException ignored) {
// Fall through to UTF-8.
}
}