Checkstyle and jdk11 fix with spock
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -27,4 +27,5 @@ public class IntegrationMessagingApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(IntegrationMessagingApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user