Code cleanup (#1461)
* Code cleanup * Fix flux tests * Fix checkstyle errors * Fix compile error
This commit is contained in:
@ -157,9 +157,9 @@ public class PersonSpecifications {
|
||||
|
||||
public static class AgeBetweenSpec implements Specification<Person> {
|
||||
|
||||
private int from;
|
||||
private final int from;
|
||||
|
||||
private int to;
|
||||
private final int to;
|
||||
|
||||
public AgeBetweenSpec(int from, int to) {
|
||||
this.from = from;
|
||||
|
@ -39,9 +39,9 @@ public class PersonSpecifications {
|
||||
*/
|
||||
public static class AgeBetweenSpec implements Specification<Person> {
|
||||
|
||||
private int from;
|
||||
private final int from;
|
||||
|
||||
private int to;
|
||||
private final int to;
|
||||
|
||||
public AgeBetweenSpec(int from, int to) {
|
||||
this.from = from;
|
||||
|
@ -48,12 +48,12 @@ public class AnnotationBasedRepositoryTest {
|
||||
@Resource
|
||||
private PersonRepository repository;
|
||||
|
||||
private Person peter = new Person("Peter", "Sagan", 17);
|
||||
private Person nasta = new Person("Nasta", "Kuzminova", 25);
|
||||
private Person john = new Person("John", "lawrence", 35);
|
||||
private Person terry = new Person("Terry", "Law", 36);
|
||||
private final Person peter = new Person("Peter", "Sagan", 17);
|
||||
private final Person nasta = new Person("Nasta", "Kuzminova", 25);
|
||||
private final Person john = new Person("John", "lawrence", 35);
|
||||
private final Person terry = new Person("Terry", "Law", 36);
|
||||
|
||||
private List<Person> persons = List.of(peter, nasta, john, terry);
|
||||
private final List<Person> persons = List.of(peter, nasta, john, terry);
|
||||
|
||||
/**
|
||||
* Prepare data for test
|
||||
|
@ -48,12 +48,12 @@ public class RepositoryTest {
|
||||
@Resource
|
||||
private PersonRepository repository;
|
||||
|
||||
private Person peter = new Person("Peter", "Sagan", 17);
|
||||
private Person nasta = new Person("Nasta", "Kuzminova", 25);
|
||||
private Person john = new Person("John", "lawrence", 35);
|
||||
private Person terry = new Person("Terry", "Law", 36);
|
||||
private final Person peter = new Person("Peter", "Sagan", 17);
|
||||
private final Person nasta = new Person("Nasta", "Kuzminova", 25);
|
||||
private final Person john = new Person("John", "lawrence", 35);
|
||||
private final Person terry = new Person("Terry", "Law", 36);
|
||||
|
||||
private List<Person> persons = List.of(peter, nasta, john, terry);
|
||||
private final List<Person> persons = List.of(peter, nasta, john, terry);
|
||||
|
||||
/**
|
||||
* Prepare data for test
|
||||
|
Reference in New Issue
Block a user