Repository: groovy Updated Branches: refs/heads/GROOVY_2_5_X bbf43219f -> 4a47d1ba5
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/4a47d1ba Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/4a47d1ba Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/4a47d1ba Branch: refs/heads/GROOVY_2_5_X Commit: 4a47d1ba57794332dddf2634dca75806f925fb2a Parents: bbf4321 Author: sunlan <[email protected]> Authored: Mon Dec 11 01:12:56 2017 +0800 Committer: sunlan <[email protected]> Committed: Mon Dec 11 01:15:00 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/4a47d1ba/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); }
