Skip to content

Commit d8919d8

Browse files
committed
fix pmd errors
1 parent b67719a commit d8919d8

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

cqrs/src/main/java/com/iluwatar/cqrs/app/App.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public static void main(String[] args) {
7171
Book dddBook = queries.getBook("Domain-Driven Design");
7272
List<Book> jBlochBooks = queries.getAuthorBooks("jBloch");
7373

74+
System.out.println("Author username : " + nullAuthor);
75+
System.out.println("Author eEvans : " + eEvans);
76+
System.out.println("jBloch number of books : " + jBlochBooksCount);
77+
System.out.println("Number of authors : " + authorsCount);
78+
System.out.println("DDD book : " + dddBook);
79+
System.out.println("jBloch books : " + jBlochBooks);
80+
7481
HibernateUtil.getSessionFactory().close();
7582
}
7683

cqrs/src/main/java/com/iluwatar/cqrs/commandes/ICommandService.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
*/
77
public interface ICommandService {
88

9-
public abstract void authorCreated(String username, String name, String email);
9+
void authorCreated(String username, String name, String email);
1010

11-
public abstract void bookAddedToAuthor(String title, double price, String username);
11+
void bookAddedToAuthor(String title, double price, String username);
1212

13-
public abstract void authorNameUpdated(String username, String name);
13+
void authorNameUpdated(String username, String name);
1414

15-
public abstract void authorUsernameUpdated(String oldUsername, String newUsername);
15+
void authorUsernameUpdated(String oldUsername, String newUsername);
1616

17-
public abstract void authorEmailUpdated(String username, String email);
17+
void authorEmailUpdated(String username, String email);
1818

19-
public abstract void bookTitleUpdated(String oldTitle, String newTitle);
19+
void bookTitleUpdated(String oldTitle, String newTitle);
2020

21-
public abstract void bookPriceUpdated(String title, double price);
21+
void bookPriceUpdated(String title, double price);
2222

2323
}

cqrs/src/main/java/com/iluwatar/cqrs/queries/IQueryService.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
*/
1414
public interface IQueryService {
1515

16-
public abstract Author getAuthorByUsername(String username);
16+
Author getAuthorByUsername(String username);
1717

18-
public abstract Book getBook(String title);
18+
Book getBook(String title);
1919

20-
public abstract List<Book> getAuthorBooks(String username);
20+
List<Book> getAuthorBooks(String username);
2121

22-
public abstract BigInteger getAuthorBooksCount(String username);
22+
BigInteger getAuthorBooksCount(String username);
2323

24-
public abstract BigInteger getAuthorsCount();
24+
BigInteger getAuthorsCount();
2525

2626
}

0 commit comments

Comments
 (0)