Skip to content

Commit

Permalink
Avoiding use of return value of assignment operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Sep 6, 2012
1 parent 390d5e3 commit e8f86f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/junit/runner/Description.java
Expand Up @@ -262,7 +262,8 @@ public Class<?> getTestClass() {
if (name == null) if (name == null)
return null; return null;
try { try {
return fTestClass= Class.forName(name, false, getClass().getClassLoader()); fTestClass= Class.forName(name, false, getClass().getClassLoader());
return fTestClass;
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException e) {
return null; return null;
} }
Expand Down

0 comments on commit e8f86f3

Please sign in to comment.