Resolves checkstyle errors for trampoline twin typeobjectpattern unit-of-work value-object (#1074)

* Reduces checkstyle errors in trampoline

* Reduces checkstyle errors in twin

* Reduces checkstyle errors in typeobjectpattern

* Reduces checkstyle errors in unit-of-work

* Reduces checkstyle errors in value-object
This commit is contained in:
Anurag Agarwal
2019-11-10 23:17:32 +05:30
committed by Ilkka Seppälä
parent b92eb5229d
commit f0f0143d48
17 changed files with 146 additions and 133 deletions

View File

@ -31,6 +31,7 @@ import java.util.List;
*/
public class App {
/**
* Program entry point.
*
* @param args no argument sent
*/

View File

@ -24,6 +24,8 @@
package com.iluwatar.unitofwork;
/**
* UnitOfWork interface.
*
* @param <T> Any generic entity
*/
public interface IUnitOfWork<T> {
@ -46,7 +48,7 @@ public interface IUnitOfWork<T> {
*/
void registerDeleted(T entity);
/***
/**
* All UnitOfWork operations batched together executed in commit only.
*/
void commit();

View File

@ -32,6 +32,8 @@ public class Student {
private final String address;
/**
* Constructor.
*
* @param id student unique id
* @param name name of student
* @param address address of student

View File

@ -23,16 +23,14 @@
package com.iluwatar.unitofwork;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* {@link StudentRepository} Student database repository.
* supports unit of work for student data.
* {@link StudentRepository} Student database repository. supports unit of work for student data.
*/
public class StudentRepository implements IUnitOfWork<Student> {
private static final Logger LOGGER = LoggerFactory.getLogger(StudentRepository.class);
@ -41,6 +39,8 @@ public class StudentRepository implements IUnitOfWork<Student> {
private StudentDatabase studentDatabase;
/**
* Constructor.
*
* @param context set of operations to be perform during commit.
* @param studentDatabase Database for student records.
*/