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


Refine the test for GROOVY-8228


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

Branch: refs/heads/master
Commit: 92101500a28d112f8013e691d33bb077a3d0bcab
Parents: a30843e
Author: sunlan <sun...@apache.org>
Authored: Wed Aug 9 08:05:27 2017 +0800
Committer: sunlan <sun...@apache.org>
Committed: Wed Aug 9 08:05:27 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/92101500/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 a82c58d..39dd35c 100644
--- a/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy
+++ b/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy
@@ -77,7 +77,7 @@ assert ['JSR308Interface1<java.lang.String>', 
'JSR308Interface2<java.lang.String
 Method testMethod = JSR308Class.class.getDeclaredMethods().find(e -> e.name == 
'test')
 assert [IOException, SQLException] == 
testMethod.getAnnotatedExceptionTypes().collect(e -> e.type)
 assert 'java.util.List<java.lang.String>' == 
testMethod.getAnnotatedReturnType().type.typeName
-assert ['java.util.List<?>'] == 
testMethod.getAnnotatedParameterTypes().collect(e -> e.type.typeName)
+assert ['java.util.List<?>', 
'java.util.List'].contains(testMethod.getAnnotatedParameterTypes().collect(e -> 
e.type.typeName).get(0))
 
 Method test2Method = JSR308Class.class.getDeclaredMethods().find(e -> e.name 
== 'test2')
 assert JSR308Class.class == test2Method.getAnnotatedReceiverType().type

Reply via email to