Code cleanup (#1461)

* Code cleanup

* Fix flux tests

* Fix checkstyle errors

* Fix compile error
This commit is contained in:
Ilkka Seppälä
2020-07-30 20:28:47 +03:00
committed by GitHub
parent 5381387026
commit 417f21ed3d
243 changed files with 1154 additions and 1162 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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

View File

@ -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