groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: remove use of deprecated method
Date Fri, 18 May 2018 11:03:03 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 7e8601aa2 -> 71915d6c6


remove use of deprecated method


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

Branch: refs/heads/GROOVY_2_6_X
Commit: 71915d6c64ae416f2a7e4b1c09b0a169fbd16b66
Parents: 7e8601a
Author: Daniel Sun <realbluesun@hotmail.com>
Authored: Fri May 18 20:04:10 2018 +1000
Committer: Paul King <paulk@asert.com.au>
Committed: Fri May 18 21:02:29 2018 +1000

----------------------------------------------------------------------
 .../groovy/runtime/m12n/ExtensionModuleHelperForTests.groovy    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/71915d6c/src/test/org/codehaus/groovy/runtime/m12n/ExtensionModuleHelperForTests.groovy
----------------------------------------------------------------------
diff --git a/src/test/org/codehaus/groovy/runtime/m12n/ExtensionModuleHelperForTests.groovy
b/src/test/org/codehaus/groovy/runtime/m12n/ExtensionModuleHelperForTests.groovy
index 638a111..ae6f7cd 100644
--- a/src/test/org/codehaus/groovy/runtime/m12n/ExtensionModuleHelperForTests.groovy
+++ b/src/test/org/codehaus/groovy/runtime/m12n/ExtensionModuleHelperForTests.groovy
@@ -16,10 +16,9 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-
 package org.codehaus.groovy.runtime.m12n
 
-import org.codehaus.groovy.tools.FileSystemCompiler;
+import org.codehaus.groovy.runtime.DefaultGroovyStaticMethods
 
 public class ExtensionModuleHelperForTests {
     static void doInFork(String code) {
@@ -27,7 +26,7 @@ public class ExtensionModuleHelperForTests {
     }
 
     static void doInFork(String baseTestClass, String code) {
-        File baseDir = FileSystemCompiler.createTempDir()
+        File baseDir = DefaultGroovyStaticMethods.createTempDir(null)
         File source = new File(baseDir, 'Temp.groovy')
         source << """import org.codehaus.groovy.runtime.m12n.*
     class TempTest extends $baseTestClass {


Mime
View raw message