Skip to content

Commit

Permalink
'each' instead of 'f' for the variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Herault committed Aug 20, 2012
1 parent 0215c66 commit 56b5463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/junit/runners/Parameterized.java
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ protected void validateFields(List<Throwable> errors) {
if (fieldsAreAnnotated()) {
List<FrameworkField> annotatedFieldsByParameter = getAnnotatedFieldsByParameter();
int[] usedIndices = new int[annotatedFieldsByParameter.size()];
for (FrameworkField f : annotatedFieldsByParameter) {
int index = f.getField().getAnnotation(Parameter.class).value();
for (FrameworkField each : annotatedFieldsByParameter) {
int index = each.getField().getAnnotation(Parameter.class).value();
if (index < 0 || index > annotatedFieldsByParameter.size()-1) {
errors.add(
new Exception("Invalid @Parameter value: "+index+". @Parameter fields counted: "+
Expand Down

0 comments on commit 56b5463

Please sign in to comment.