Checkstyle and jdk11 fix with spock

This commit is contained in:
Marcin Grzejszczak
2018-10-05 10:44:28 +02:00
parent 27652ade37
commit 8da2e4ee57
220 changed files with 3214 additions and 1977 deletions

View File

@@ -22,10 +22,12 @@ import com.fasterxml.jackson.annotation.JsonCreator;
@SuppressWarnings("serial")
public class BookDeleted implements Serializable {
public final String bookName;
@JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
public BookDeleted(String bookName) {
this.bookName = bookName;
}
}

View File

@@ -48,7 +48,8 @@ public class BookListener {
* upon receiving message on the output messageFrom
*/
public void bookDeleted(BookDeleted bookDeleted) {
log.info("Deleting book [ "+ bookDeleted + "]");
log.info("Deleting book [ " + bookDeleted + "]");
this.bookSuccessfullyDeleted.set(true);
}
}

View File

@@ -22,10 +22,12 @@ import com.fasterxml.jackson.annotation.JsonCreator;
@SuppressWarnings("serial")
public class BookReturned implements Serializable {
public final String bookName;
@JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
BookReturned(String bookName) {
this.bookName = bookName;
}
}

View File

@@ -36,7 +36,7 @@ public class BookService {
* a possibility to "trigger" sending of a message to the given messageFrom server
* side: will run the method and await upon receiving message on the output
* messageFrom
*
*
* Method triggers sending a message to a source
*/
public void returnBook(BookReturned bookReturned) {
@@ -44,4 +44,5 @@ public class BookService {
this.outputChannel.send(MessageBuilder.withPayload(bookReturned)
.setHeader("BOOK-NAME", bookReturned.bookName).build());
}
}

View File

@@ -27,4 +27,5 @@ public class IntegrationMessagingApplication {
public static void main(String[] args) {
SpringApplication.run(IntegrationMessagingApplication.class, args);
}
}