You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2015/10/10 09:45:40 UTC

incubator-groovy git commit: remove check for java 4 and below from isJUnit4Test method

Repository: incubator-groovy
Updated Branches:
  refs/heads/master 69acaf551 -> 8b24b213b


remove check for java 4 and below from isJUnit4Test method


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

Branch: refs/heads/master
Commit: 8b24b213ba2084e4f6d5e05d1e989dee53700138
Parents: 69acaf5
Author: pascalschumacher <pa...@gmx.net>
Authored: Sat Oct 10 09:45:18 2015 +0200
Committer: pascalschumacher <pa...@gmx.net>
Committed: Sat Oct 10 09:45:18 2015 +0200

----------------------------------------------------------------------
 src/main/groovy/lang/GroovyShell.java | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/8b24b213/src/main/groovy/lang/GroovyShell.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/lang/GroovyShell.java b/src/main/groovy/lang/GroovyShell.java
index d9c6564..a1af1c3 100644
--- a/src/main/groovy/lang/GroovyShell.java
+++ b/src/main/groovy/lang/GroovyShell.java
@@ -466,12 +466,6 @@ public class GroovyShell extends GroovyObjectSupport {
      * @return true if the class appears to be a test
      */
     private boolean isJUnit4Test(Class scriptClass) {
-        // if we are running under Java 1.4 don't bother trying to check
-        char version = System.getProperty("java.version").charAt(2);
-        if (version < '5') {
-            return false;
-        }
-
         // check if there are appropriate class or method annotations
         // that suggest we have a JUnit 4 test
         boolean isTest = false;