Repository: groovy Updated Branches: refs/heads/GROOVY_2_6_X f139d198e -> 605bae5fa
Trivial refactoring (cherry picked from commit a6f2133) Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/605bae5f Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/605bae5f Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/605bae5f Branch: refs/heads/GROOVY_2_6_X Commit: 605bae5fa39a6e4c83612346ef02e890ccecf253 Parents: f139d19 Author: sunlan <[email protected]> Authored: Mon Dec 11 01:12:56 2017 +0800 Committer: sunlan <[email protected]> Committed: Mon Dec 11 01:14:07 2017 +0800 ---------------------------------------------------------------------- src/main/groovy/lang/ExpandoMetaClass.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/605bae5f/src/main/groovy/lang/ExpandoMetaClass.java ---------------------------------------------------------------------- diff --git a/src/main/groovy/lang/ExpandoMetaClass.java b/src/main/groovy/lang/ExpandoMetaClass.java index bfb5210..d56f738 100644 --- a/src/main/groovy/lang/ExpandoMetaClass.java +++ b/src/main/groovy/lang/ExpandoMetaClass.java @@ -1192,7 +1192,7 @@ public class ExpandoMetaClass extends MetaClassImpl implements GroovyObject { * @return The MetaProperty or null if it doesn't exist */ public MetaProperty getMetaProperty(String name) { - MetaProperty mp = (MetaProperty) this.expandoProperties.get(name); + MetaProperty mp = this.expandoProperties.get(name); if (mp != null) return mp; return super.getMetaProperty(name); }
