Skip to content

Commit 4e8d6be

Browse files
committed
Fix test code formatting
1 parent 079ca80 commit 4e8d6be

File tree

4 files changed

+48
-35
lines changed

4 files changed

+48
-35
lines changed

spring-expression/src/test/java/org/springframework/expression/spel/SpelReproTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
*/
7777
public class SpelReproTests extends AbstractExpressionTests {
7878

79-
8079
@Test
8180
public void NPE_SPR5661() {
8281
evaluate("joinThreeStrings('a',null,'c')", "anullc", String.class);

spring-expression/src/test/java/org/springframework/expression/spel/testresources/Person.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 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.
@@ -16,9 +16,10 @@
1616

1717
package org.springframework.expression.spel.testresources;
1818

19-
///CLOVER:OFF
2019
public class Person {
20+
2121
private String privateName;
22+
2223
Company company;
2324

2425
public Person(String name) {
@@ -41,4 +42,5 @@ public void setName(String n) {
4142
public Company getCompany() {
4243
return company;
4344
}
45+
4446
}
Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 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.
@@ -19,19 +19,25 @@
1919
import java.util.List;
2020

2121
public class TestAddress{
22-
private String street;
23-
private List<String> crossStreets;
24-
25-
public String getStreet() {
26-
return street;
27-
}
28-
public void setStreet(String street) {
29-
this.street = street;
30-
}
31-
public List<String> getCrossStreets() {
32-
return crossStreets;
33-
}
34-
public void setCrossStreets(List<String> crossStreets) {
35-
this.crossStreets = crossStreets;
36-
}
22+
23+
private String street;
24+
25+
private List<String> crossStreets;
26+
27+
public String getStreet() {
28+
return street;
29+
}
30+
31+
public void setStreet(String street) {
32+
this.street = street;
3733
}
34+
35+
public List<String> getCrossStreets() {
36+
return crossStreets;
37+
}
38+
39+
public void setCrossStreets(List<String> crossStreets) {
40+
this.crossStreets = crossStreets;
41+
}
42+
43+
}
Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 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.
@@ -17,19 +17,25 @@
1717
package org.springframework.expression.spel.testresources;
1818

1919
public class TestPerson {
20-
private String name;
21-
private TestAddress address;
22-
23-
public String getName() {
24-
return name;
25-
}
26-
public void setName(String name) {
27-
this.name = name;
28-
}
29-
public TestAddress getAddress() {
30-
return address;
31-
}
32-
public void setAddress(TestAddress address) {
33-
this.address = address;
34-
}
20+
21+
private String name;
22+
23+
private TestAddress address;
24+
25+
public String getName() {
26+
return name;
27+
}
28+
29+
public void setName(String name) {
30+
this.name = name;
3531
}
32+
33+
public TestAddress getAddress() {
34+
return address;
35+
}
36+
37+
public void setAddress(TestAddress address) {
38+
this.address = address;
39+
}
40+
41+
}

0 commit comments

Comments
 (0)