You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ja...@apache.org on 2025/08/29 19:00:10 UTC

(grails-core) branch dot-notation-deprecation created (now 2f5354f91d)

This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a change to branch dot-notation-deprecation
in repository https://gitbox.apache.org/repos/asf/grails-core.git


      at 2f5354f91d Remove deprecation warning for dot notation access

This branch includes the following new commits:

     new 2f5354f91d Remove deprecation warning for dot notation access

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(grails-core) 01/01: Remove deprecation warning for dot notation access

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a commit to branch dot-notation-deprecation
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit 2f5354f91d71922e9c271e8cc8490a59cab73f45
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Fri Aug 29 15:00:07 2025 -0400

    Remove deprecation warning for dot notation access
    
    Remove deprecated warning for dot notation access.
    
    `Accessing config key '{}' through dot notation is deprecated ...`
---
 .../src/main/groovy/org/grails/config/NavigableMap.groovy            | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/grails-bootstrap/src/main/groovy/org/grails/config/NavigableMap.groovy b/grails-bootstrap/src/main/groovy/org/grails/config/NavigableMap.groovy
index 15fddd7c39..330d97dd72 100644
--- a/grails-bootstrap/src/main/groovy/org/grails/config/NavigableMap.groovy
+++ b/grails-bootstrap/src/main/groovy/org/grails/config/NavigableMap.groovy
@@ -359,11 +359,6 @@ class NavigableMap implements Map<String, Object>, Cloneable {
             return new NullSafeNavigator(this, [name].asImmutable())
         }
         Object result = get(name)
-        if (!(result instanceof NavigableMap)) {
-            if (LOG.isWarnEnabled()) {
-                LOG.warn("Accessing config key '{}' through dot notation is deprecated, and it will be removed in a future release. Use 'config.getProperty(key, targetClass)' instead.", name)
-            }
-        }
         return result
     }