You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/06/30 03:10:24 UTC

[groovy] branch tweak-methodDeclaration-rule updated: Try to fix the failing build

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch tweak-methodDeclaration-rule
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/tweak-methodDeclaration-rule by this push:
     new d68f1c4  Try to fix the failing build
d68f1c4 is described below

commit d68f1c4e71fe411e32f8e3b50b01daa15a56b0fa
Author: Daniel Sun <su...@apache.org>
AuthorDate: Tue Jun 30 11:10:03 2020 +0800

    Try to fix the failing build
---
 src/test/org/codehaus/groovy/vmplugin/v9/ClassFinderTest.groovy | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/test/org/codehaus/groovy/vmplugin/v9/ClassFinderTest.groovy b/src/test/org/codehaus/groovy/vmplugin/v9/ClassFinderTest.groovy
index 824d5ff..24f1c3a 100644
--- a/src/test/org/codehaus/groovy/vmplugin/v9/ClassFinderTest.groovy
+++ b/src/test/org/codehaus/groovy/vmplugin/v9/ClassFinderTest.groovy
@@ -100,7 +100,9 @@ class ClassFinderTest {
     void defaultImportClasses() {
         Map<String, Set<String>> r1 = VMPluginFactory.getPlugin().getDefaultImportClasses(ResolveVisitor.DEFAULT_IMPORTS) as TreeMap<String, Set<String>>
 
-        assert (ResolveVisitor.DEFAULT_IMPORTS as List).sort() == r1.values().stream().flatMap(e -> e.stream()).collect(Collectors.toSet()).sort()
+        def defaultImports = new ArrayList(ResolveVisitor.DEFAULT_IMPORTS as List)
+        Collections.sort(defaultImports)
+        assert defaultImports == r1.values().stream().flatMap(e -> e.stream()).collect(Collectors.toSet()).sort()
     }
 
     @Test