This is an automated email from the ASF dual-hosted git repository. borinquenkid pushed a commit to branch test/document-datamapping-core-services in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit ae9be6b935b666ff9513cc45baac2a3b37a7cb76 Author: Walter Duque de Estrada <[email protected]> AuthorDate: Sat Aug 15 19:20:09 2026 -0500 Suppress IntelliJ warnings on getDetachedCriteriaType's unused parameter domainClassNode is intentionally unused in the base implementation; the method is a protected extension point so subclasses can pick a different DetachedCriteria type per domain class. No current subclass overrides it, but making the method static or dropping the parameter would remove that polymorphic extension point. Co-Authored-By: Claude Sonnet 5 <[email protected]> --- .../implementers/AbstractDetachedCriteriaServiceImplementor.groovy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/services/implementers/AbstractDetachedCriteriaServiceImplementor.groovy b/grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/services/implementers/AbstractDetachedCriteriaServiceImplementor.groovy index 312b60454a..56fbfd7112 100644 --- a/grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/services/implementers/AbstractDetachedCriteriaServiceImplementor.groovy +++ b/grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/services/implementers/AbstractDetachedCriteriaServiceImplementor.groovy @@ -123,6 +123,9 @@ abstract class AbstractDetachedCriteriaServiceImplementor extends AbstractReadOp } } + // domainClassNode is unused here, but kept so subclasses can override this as a + // polymorphic extension point and pick a DetachedCriteria type based on the domain class + @SuppressWarnings(['unused', 'MethodMayBeStatic']) protected ClassNode getDetachedCriteriaType(ClassNode domainClassNode) { DETACHED_CRITERIA }
