You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by jd...@apache.org on 2025/07/12 03:21:21 UTC
(grails-core) 05/09: removal: remove old, deprecated method `getPropertyForGetter`
This is an automated email from the ASF dual-hosted git repository.
jdaugherty pushed a commit to branch deprecationRemovals
in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit e856a34a01f297da6bac7efe6603c59e0d3e8c0a
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Fri Jul 11 23:08:34 2025 -0400
removal: remove old, deprecated method `getPropertyForGetter`
---
.../src/main/groovy/grails/util/GrailsClassUtils.java | 13 -------------
grails-doc/src/en/guide/upgrading/upgrading60x.adoc | 1 +
2 files changed, 1 insertion(+), 13 deletions(-)
diff --git a/grails-core/src/main/groovy/grails/util/GrailsClassUtils.java b/grails-core/src/main/groovy/grails/util/GrailsClassUtils.java
index 343c08f9ba..edec1dd5a8 100644
--- a/grails-core/src/main/groovy/grails/util/GrailsClassUtils.java
+++ b/grails-core/src/main/groovy/grails/util/GrailsClassUtils.java
@@ -882,19 +882,6 @@ public class GrailsClassUtils {
return GrailsNameUtils.isGetter(name, returnType, args);
}
- /**
- * Returns a property name equivalent for the given getter name or null if it is not a valid getter. If not null
- * or empty the getter name is assumed to be a valid identifier.
- *
- * @param getterName The getter name
- * @return The property name equivalent
- * @deprecated Use {@link #getPropertyForGetter(String, Class)} instead because this method has a defect for "is.." method with Boolean return types.
- */
- @Deprecated
- public static String getPropertyForGetter(String getterName) {
- return GrailsNameUtils.getPropertyForGetter(getterName);
- }
-
/**
* Returns a property name equivalent for the given getter name and return type or null if it is not a valid getter. If not null
* or empty the getter name is assumed to be a valid identifier.
diff --git a/grails-doc/src/en/guide/upgrading/upgrading60x.adoc b/grails-doc/src/en/guide/upgrading/upgrading60x.adoc
index 69dbad2b04..bbf230ebec 100644
--- a/grails-doc/src/en/guide/upgrading/upgrading60x.adoc
+++ b/grails-doc/src/en/guide/upgrading/upgrading60x.adoc
@@ -238,6 +238,7 @@ jakartaeeMigration {
- `org.grails.spring.beans.factory.OptimizedAutowireCapableBeanFactory` was previously deprecated and is now removed.
- the `checkForChangesExpected` on GrailsPlugin was previously deprecated and is now removed.
- `GrailsClassUtils#isGetter(String, Class[])` was previously deprecated and is now removed. Use `isGetter(String, Class, Class[])` instead.
+- `GrailsClassUtils#getPropertyForGetter(String)` was previously deprecated and is now removed. Use `getPropertyForGetter(String, Class)` instead.
- The following deprecated classes were removed, please use the suggested replacement:
1. `grails.core.GrailsTagLibClass` -> `grails.core.gsp.GrailsTagLibClass`