groovy git commit: Remove Java7+ API usage

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

groovy git commit: Remove Java7+ API usage

Daniel.Sun
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 <[hidden email]>
Authored: Sat Mar 10 23:08:20 2018 +0800
Committer: danielsun1106 <[hidden email]>
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
                 }
             }
         }

Daniel Sun
Apache Groovy committer

Blog: http://blog.sunlan.me
Twitter: @daniel_sun