[SUREFIRE] refactoring
Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/30199c9f Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/30199c9f Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/30199c9f Branch: refs/heads/master Commit: 30199c9f736afa74500f874c2b18d5ad91c86c3e Parents: f7c71a0 Author: Tibor17 <tibo...@lycos.com> Authored: Fri Jul 17 22:17:04 2015 +0200 Committer: Tibor17 <tibo...@lycos.com> Committed: Thu Jul 23 23:28:16 2015 +0200 ---------------------------------------------------------------------- .../apache/maven/surefire/junit/PojoAndJUnit3Checker.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/30199c9f/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/PojoAndJUnit3Checker.java ---------------------------------------------------------------------- diff --git a/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/PojoAndJUnit3Checker.java b/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/PojoAndJUnit3Checker.java index 861fad3..d3529c1 100644 --- a/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/PojoAndJUnit3Checker.java +++ b/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/PojoAndJUnit3Checker.java @@ -40,15 +40,15 @@ public class PojoAndJUnit3Checker public boolean accept( Class testClass ) { - return jUnit3TestChecker.accept( testClass ) || nonAbstractClassFilter.accept( testClass ) && isPojoTest( - testClass ); + return jUnit3TestChecker.accept( testClass ) + || nonAbstractClassFilter.accept( testClass ) && isPojoTest( testClass ); } - private boolean isPojoTest( Class testClass ) + private boolean isPojoTest( Class<?> testClass ) { try { - testClass.getConstructor( new Class[0] ); + testClass.getConstructor(); return true; } catch ( Exception e )