groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Remove Java7+ API usage
Date Sat, 10 Mar 2018 15:08:30 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X 2f7d9ddcb -> 45550272f


Remove Java7+ API usage


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

Branch: refs/heads/GROOVY_2_4_X
Commit: 45550272f1536c6b5f572e57241aabea59a0b2d3
Parents: 2f7d9dd
Author: danielsun1106 <realbluesun@hotmail.com>
Authored: Sat Mar 10 23:08:20 2018 +0800
Committer: danielsun1106 <realbluesun@hotmail.com>
Committed: Sat Mar 10 23:08:20 2018 +0800

----------------------------------------------------------------------
 src/test/groovy/bugs/Groovy8439Bug.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/45550272/src/test/groovy/bugs/Groovy8439Bug.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/bugs/Groovy8439Bug.groovy b/src/test/groovy/bugs/Groovy8439Bug.groovy
index 13af477..3baeb1c 100644
--- a/src/test/groovy/bugs/Groovy8439Bug.groovy
+++ b/src/test/groovy/bugs/Groovy8439Bug.groovy
@@ -26,7 +26,7 @@ class Groovy8439Bug extends GroovyTestCase {
         class Test<T extends Task> {
             static def something(Task task, Collection<BaseVariant> variants) {
                 variants.collectMany { it.sourceFolders }.collect { ConfigurableFileTree
tree ->
-                    task.getBuildDir().toPath().relativize(tree.dir.toPath()).toString()
+ File.separator
+                    tree.dir.toString() + File.separator
                 }
             }
         }


Mime
View raw message