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 10:07:03 UTC

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

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/f43e77cf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/f43e77cf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/f43e77cf

Branch: refs/heads/GROOVY_2_4_X
Commit: f43e77cf804b32d4bfff1c533e25951c2dfded80
Parents: 1167e32
Author: pascalschumacher <pa...@gmx.net>
Authored: Sat Oct 10 09:45:18 2015 +0200
Committer: pascalschumacher <pa...@gmx.net>
Committed: Sat Oct 10 10:06:43 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/f43e77cf/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;