mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 12:58:37 +00:00
* #2449 bump maven-checkstyle-plugin from 3.1.0 to 3.2.0 + resolve checkstyle issues * remove FileSelectorJFrame.java to resolve checkstyle issue * remove FileSelectorJFrame.java to resolve checkstyle issue * remove FileSelectorJFrame.java to resolve checkstyle issue * add refactored file with correct filename to resolve checkstyle issue * add the test data * change filenames from JFrame to Jframe for checkstyle * fix code smell from sonar report * add new testcases to improve the test coverage * remove code smell
This commit is contained in:
@@ -26,6 +26,9 @@ package com.iluwatar.transactionscript;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* Hotel class to implement TS pattern.
|
||||
*/
|
||||
@Slf4j
|
||||
public class Hotel {
|
||||
|
||||
|
||||
@@ -27,6 +27,9 @@ package com.iluwatar.transactionscript;
|
||||
import java.util.Optional;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
/**
|
||||
* DAO interface for hotel transactions.
|
||||
*/
|
||||
public interface HotelDao {
|
||||
|
||||
Stream<Room> getAll() throws Exception;
|
||||
|
||||
@@ -36,6 +36,9 @@ import java.util.stream.StreamSupport;
|
||||
import javax.sql.DataSource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* Implementation of database operations for Hotel class.
|
||||
*/
|
||||
@Slf4j
|
||||
public class HotelDaoImpl implements HotelDao {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user