Permalink
Browse files

Avoiding use of return value of assignment operator.

  • Loading branch information...
1 parent 390d5e3 commit e8f86f3e2660804adca60d739e5794862ce01c02 @jglick jglick committed Sep 6, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/java/org/junit/runner/Description.java
@@ -262,7 +262,8 @@ public Description childlessCopy() {
if (name == null)
return null;
try {
- return fTestClass= Class.forName(name, false, getClass().getClassLoader());
+ fTestClass= Class.forName(name, false, getClass().getClassLoader());
+ return fTestClass;
} catch (ClassNotFoundException e) {
return null;
}

0 comments on commit e8f86f3

Please sign in to comment.