You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by em...@apache.org on 2022/03/13 17:37:18 UTC
[groovy] branch master updated: GROOVY-10527: add type arguments to `getProperties(Object)` return type
This is an automated email from the ASF dual-hosted git repository.
emilles pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new a91d120 GROOVY-10527: add type arguments to `getProperties(Object)` return type
a91d120 is described below
commit a91d120fbff679d4b52ae3518d4082e11f15e5f4
Author: Eric Milles <er...@thomsonreuters.com>
AuthorDate: Tue Mar 8 12:37:41 2022 -0600
GROOVY-10527: add type arguments to `getProperties(Object)` return type
---
src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java b/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
index 3f8c806..a2a6cf1 100644
--- a/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
+++ b/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
@@ -512,7 +512,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
* @return meta properties as Map of key/value pairs
* @since 1.0
*/
- public static Map getProperties(Object self) {
+ public static Map<String, Object> getProperties(Object self) {
List<PropertyValue> metaProps = getMetaPropertyValues(self);
Map<String, Object> props = new LinkedHashMap<>(metaProps.size());