mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-23 14:25:02 +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:
@@ -35,7 +35,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
*/
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
public class ArmsDealer implements IUnitOfWork<Weapon> {
|
||||
public class ArmsDealer implements UnitOfWork<Weapon> {
|
||||
|
||||
private final Map<String, List<Weapon>> context;
|
||||
private final WeaponDatabase weaponDatabase;
|
||||
|
||||
@@ -27,6 +27,9 @@ package com.iluwatar.unitofwork;
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
/**
|
||||
* Enum representing unit actions.
|
||||
*/
|
||||
@Getter
|
||||
@RequiredArgsConstructor
|
||||
public enum UnitActions {
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ package com.iluwatar.unitofwork;
|
||||
*
|
||||
* @param <T> Any generic entity
|
||||
*/
|
||||
public interface IUnitOfWork<T> {
|
||||
public interface UnitOfWork<T> {
|
||||
|
||||
/**
|
||||
* Any register new operation occurring on UnitOfWork is only going to be performed on commit.
|
||||
Reference in New Issue
Block a user