Skip to content

Commit a89e716

Browse files
philwebbjhoeller
authored andcommitted
Use tabs rather than spaces in tests
Update tests to ensure that tabs are used instead of spaces. Also consistently apply a new line at the end of each file. Issue: SPR-16968
1 parent 1c25cec commit a89e716

File tree

209 files changed

+531
-532
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+531
-532
lines changed

spring-aop/src/test/java/org/springframework/aop/framework/ClassWithConstructor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,4 +25,4 @@ public ClassWithConstructor(Object object) {
2525
public void method() {
2626

2727
}
28-
}
28+
}

spring-aop/src/test/java/org/springframework/aop/framework/ProxyFactoryTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -216,7 +216,7 @@ public int compareTo(Object arg0) {
216216
TimeStamped ts = (TimeStamped) factory.getProxy();
217217
assertTrue(ts.getTimeStamp() == t);
218218
// Shouldn't fail;
219-
((IOther) ts).absquatulate();
219+
((IOther) ts).absquatulate();
220220
}
221221

222222
@Test

spring-aspects/src/test/java/org/springframework/cache/config/SomeCustomKeyGenerator.java

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,20 +28,20 @@
2828
*/
2929
public class SomeCustomKeyGenerator implements KeyGenerator {
3030

31-
@Override
32-
public Object generate(Object target, Method method, Object... params) {
33-
return generateKey(method.getName(), params);
34-
}
31+
@Override
32+
public Object generate(Object target, Method method, Object... params) {
33+
return generateKey(method.getName(), params);
34+
}
3535

36-
/**
37-
* @see #generate(Object, java.lang.reflect.Method, Object...)
38-
*/
39-
static Object generateKey(String methodName, Object... params) {
40-
final StringBuilder sb = new StringBuilder(methodName);
41-
for (Object param : params) {
42-
sb.append(param);
43-
}
44-
return sb.toString();
45-
}
36+
/**
37+
* @see #generate(Object, java.lang.reflect.Method, Object...)
38+
*/
39+
static Object generateKey(String methodName, Object... params) {
40+
final StringBuilder sb = new StringBuilder(methodName);
41+
for (Object param : params) {
42+
sb.append(param);
43+
}
44+
return sb.toString();
45+
}
4646

4747
}

spring-aspects/src/test/java/org/springframework/scheduling/aspectj/AnnotationAsyncExecutionAspectTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -295,7 +295,7 @@ static class ClassWithException {
295295

296296
@Async
297297
public void failWithVoid() {
298-
throw new UnsupportedOperationException("failWithVoid");
298+
throw new UnsupportedOperationException("failWithVoid");
299299
}
300300
}
301301

spring-beans/src/test/java/org/springframework/beans/AbstractPropertyValuesTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -52,4 +52,4 @@ protected void doTestTony(PropertyValues pvs) throws Exception {
5252
assertTrue("Map size is 0", m.size() == 0);
5353
}
5454

55-
}
55+
}

spring-beans/src/test/java/org/springframework/beans/BeanUtilsTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,9 @@ public void setValue(String aValue) {
444444
value = aValue;
445445
}
446446
}
447-
447+
448448
private static class BeanWithSingleNonDefaultConstructor {
449-
449+
450450
private final String name;
451451

452452
public BeanWithSingleNonDefaultConstructor(String name) {

spring-beans/src/test/java/org/springframework/beans/BeanWrapperGenericsTests.java

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -644,25 +644,25 @@ public void setVersion(Double theDouble) {
644644

645645
public interface ObjectWithId<T extends Comparable<T>> {
646646

647-
T getId();
647+
T getId();
648648

649-
void setId(T aId);
649+
void setId(T aId);
650650
}
651651

652652

653653
public class Promotion implements ObjectWithId<Long> {
654654

655-
private Long id;
655+
private Long id;
656656

657-
@Override
658-
public Long getId() {
659-
return id;
660-
}
657+
@Override
658+
public Long getId() {
659+
return id;
660+
}
661661

662-
@Override
663-
public void setId(Long aId) {
664-
this.id = aId;
665-
}
662+
@Override
663+
public void setId(Long aId) {
664+
this.id = aId;
665+
}
666666
}
667667

668668
}

spring-beans/src/test/java/org/springframework/beans/factory/xml/CountingFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -65,4 +65,4 @@ public boolean isSingleton() {
6565
return true;
6666
}
6767

68-
}
68+
}

spring-beans/src/test/java/org/springframework/beans/factory/xml/DummyReferencer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -64,4 +64,4 @@ public TestBean getTestBean2() {
6464
return testBean2;
6565
}
6666

67-
}
67+
}

spring-beans/src/test/java/org/springframework/beans/factory/xml/ProtectedLifecycleBean.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -165,4 +165,4 @@ public Object postProcessAfterInitialization(Object bean, String name) throws Be
165165
}
166166
}
167167

168-
}
168+
}

spring-beans/src/test/java/org/springframework/beans/support/DerivedFromProtectedBaseBean.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2005 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,4 +22,4 @@
2222
*/
2323
public class DerivedFromProtectedBaseBean extends ProtectedBaseBean {
2424

25-
}
25+
}

spring-beans/src/test/java/org/springframework/beans/support/ProtectedBaseBean.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2005 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,4 +32,4 @@ public String getSomeProperty() {
3232
return someProperty;
3333
}
3434

35-
}
35+
}

spring-beans/src/test/java/org/springframework/tests/sample/beans/BooleanTestBean.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -43,4 +43,4 @@ public void setBool2(Boolean bool2) {
4343
this.bool2 = bool2;
4444
}
4545

46-
}
46+
}

spring-beans/src/test/java/org/springframework/tests/sample/beans/CustomEnum.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2007 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,4 +28,4 @@ public String toString() {
2828
return "CustomEnum: " + name();
2929
}
3030

31-
}
31+
}

spring-beans/src/test/java/org/springframework/tests/sample/beans/DummyFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -182,4 +182,4 @@ public void destroy() {
182182
}
183183
}
184184

185-
}
185+
}

spring-beans/src/test/java/org/springframework/tests/sample/beans/GenericIntegerBean.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2008 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,4 +22,4 @@
2222
*/
2323
public class GenericIntegerBean extends GenericBean<Integer> {
2424

25-
}
25+
}

spring-beans/src/test/java/org/springframework/tests/sample/beans/GenericSetOfIntegerBean.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2008 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,4 +23,4 @@
2323
*/
2424
public class GenericSetOfIntegerBean extends GenericBean<Set<Integer>> {
2525

26-
}
26+
}

spring-beans/src/test/java/org/springframework/tests/sample/beans/INestedTestBean.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,4 +20,4 @@ public interface INestedTestBean {
2020

2121
public String getCompany();
2222

23-
}
23+
}

spring-beans/src/test/java/org/springframework/tests/sample/beans/IOther.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/*
3-
* Copyright 2002-2012 the original author or authors.
3+
* Copyright 2002-2018 the original author or authors.
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -21,4 +21,4 @@ public interface IOther {
2121

2222
void absquatulate();
2323

24-
}
24+
}

spring-beans/src/test/java/org/springframework/tests/sample/beans/IndexedTestBean.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -142,4 +142,4 @@ public void setSortedMap(SortedMap sortedMap) {
142142
this.sortedMap = sortedMap;
143143
}
144144

145-
}
145+
}

spring-beans/src/test/java/org/springframework/tests/sample/beans/LifecycleBean.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -167,4 +167,4 @@ public Object postProcessAfterInitialization(Object bean, String name) throws Be
167167
}
168168
}
169169

170-
}
170+
}

spring-beans/src/test/java/org/springframework/tests/sample/beans/NestedTestBean.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -61,4 +61,4 @@ public String toString() {
6161
return "NestedTestBean: " + this.company;
6262
}
6363

64-
}
64+
}

spring-beans/src/test/java/org/springframework/tests/sample/beans/NumberTestBean.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -140,4 +140,4 @@ public void setBigDecimal(BigDecimal bigDecimal) {
140140
this.bigDecimal = bigDecimal;
141141
}
142142

143-
}
143+
}

spring-beans/src/test/java/org/springframework/tests/sample/beans/factory/DummyFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -183,4 +183,4 @@ public void destroy() {
183183
}
184184
}
185185

186-
}
186+
}

0 commit comments

Comments
 (0)