Repository: groovy
Updated Branches:
  refs/heads/master 92101500a -> abd63ab77


Refine the test for GROOVY-8228 further


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

Branch: refs/heads/master
Commit: abd63ab77ba9e306561898b9bcecfb6e0d46b094
Parents: 9210150
Author: sunlan <sun...@apache.org>
Authored: Wed Aug 9 11:04:17 2017 +0800
Committer: sunlan <sun...@apache.org>
Committed: Wed Aug 9 11:04:17 2017 +0800

----------------------------------------------------------------------
 .../parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/abd63ab7/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy
----------------------------------------------------------------------
diff --git 
a/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy 
b/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy
index 39dd35c..19045ae 100644
--- a/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy
+++ b/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy
@@ -83,7 +83,7 @@ Method test2Method = 
JSR308Class.class.getDeclaredMethods().find(e -> e.name ==
 assert JSR308Class.class == test2Method.getAnnotatedReceiverType().type
 
 Parameter listParameter = testMethod.getParameters()[0]
-assert 'java.util.List<?>' == listParameter.getAnnotatedType().type.typeName
+assert ['java.util.List<?>', 
'java.util.List'].contains(listParameter.getAnnotatedType().type.typeName)
 
 Field nameField = JSR308Class.class.getDeclaredField('name');
 assert String.class == nameField.getAnnotatedType().type

Reply via email to