Repository: groovy
Updated Branches:
  refs/heads/master 4c44cb0ac -> a6f2133fc


Trivial refactoring


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/a6f2133f
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/a6f2133f
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/a6f2133f

Branch: refs/heads/master
Commit: a6f2133fc52a715839e3b77ee0871255f4d38174
Parents: 4c44cb0
Author: sunlan <[email protected]>
Authored: Mon Dec 11 01:12:56 2017 +0800
Committer: sunlan <[email protected]>
Committed: Mon Dec 11 01:12:56 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/a6f2133f/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);
     }

Reply via email to