Permalink
Browse files

fixing weird indent

  • Loading branch information...
1 parent 56b5463 commit def7dc5f79e99b11425ab36b51bdaa9ff735bc9b @jherault jherault committed Aug 21, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/main/java/org/junit/runners/Parameterized.java
@@ -185,7 +185,7 @@ private Object createTestUsingConstructorInjection() throws Exception {
}
private Object createTestUsingFieldInjection() throws Exception {
- List<FrameworkField> annotatedFieldsByParameter = getAnnotatedFieldsByParameter();
+ List<FrameworkField> annotatedFieldsByParameter = getAnnotatedFieldsByParameter();
if (annotatedFieldsByParameter.size() != fParameters.length)
throw new Exception("Wrong number of parameters and @Parameter fields."+
" @Parameter fields counted: "+annotatedFieldsByParameter.size()+", available parameters: "+fParameters.length+".");
@@ -228,7 +228,7 @@ protected void validateConstructor(List<Throwable> errors) {
protected void validateFields(List<Throwable> errors) {
super.validateFields(errors);
if (fieldsAreAnnotated()) {
- List<FrameworkField> annotatedFieldsByParameter = getAnnotatedFieldsByParameter();
+ List<FrameworkField> annotatedFieldsByParameter = getAnnotatedFieldsByParameter();
int[] usedIndices = new int[annotatedFieldsByParameter.size()];
for (FrameworkField each : annotatedFieldsByParameter) {
int index = each.getField().getAnnotation(Parameter.class).value();
@@ -338,9 +338,9 @@ private Exception parametersMethodReturnedWrongType() throws Exception {
return new Exception(message);
}
- private List<FrameworkField> getAnnotatedFieldsByParameter() {
- return getTestClass().getAnnotatedFields(Parameter.class);
- }
+ private List<FrameworkField> getAnnotatedFieldsByParameter() {
+ return getTestClass().getAnnotatedFields(Parameter.class);
+ }
private boolean fieldsAreAnnotated() {
return !getAnnotatedFieldsByParameter().isEmpty();

0 comments on commit def7dc5

Please sign in to comment.