Skip to content

Commit 9913bbd

Browse files
committed
Refactory.
1 parent a340c6d commit 9913bbd

25 files changed

Lines changed: 109 additions & 79 deletions

src/main/java/com/github/jonpereiradev/diffobjects/DiffException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
/**
44
* Exception for any generic error found in the diff execution.
55
*
6-
* @author jonpereiradev@gmail.com
6+
* @author Jonathan Pereira
7+
* @since 1.0
78
*/
89
public class DiffException extends RuntimeException {
910

src/main/java/com/github/jonpereiradev/diffobjects/DiffObjects.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
/**
1414
* Responsible for execute the diff between two objects.
1515
*
16-
* @author jonpereiradev@gmail.com
16+
* @author Jonathan Pereira
17+
* @since 1.0
1718
*/
1819
public final class DiffObjects {
1920

src/main/java/com/github/jonpereiradev/diffobjects/DiffResult.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
/**
66
* Result of a diff with the before and after state.
77
*
8-
* @author jonpereiradev@gmail.com
8+
* @author Jonathan Pereira
9+
* @since 1.0
910
*/
1011
public final class DiffResult {
1112

src/main/java/com/github/jonpereiradev/diffobjects/annotation/DiffMapping.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
import java.lang.annotation.Target;
77

88
/**
9-
* <p>A method annotated with this will be checked for difference between two objects.</p>
10-
* <p>When annotated on a method without value(), the equals method of this object will be executed.</p>
11-
* <p>When annotated on a method with value(), the property will be evaluated for equality.</p>
9+
* A method annotated with this will be checked for difference between two objects. When annotated on a method without
10+
* value(), the equals method of this object will be executed. When annotated on a method with value(), the property
11+
* will be evaluated for equality.
1212
*
13-
* @author jonpereiradev@gmail.com
13+
* @author Jonathan Pereira
14+
* @since 1.0
1415
*/
1516
@Retention(RetentionPolicy.RUNTIME)
1617
@Target({ElementType.METHOD})

src/main/java/com/github/jonpereiradev/diffobjects/annotation/DiffMappings.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
/**
99
* Annotation to group multiple mappings on a method or to enable all methods if is used on a class.
1010
*
11-
* @author jonpereiradev@gmail.com
11+
* @author Jonathan Pereira
12+
* @since 1.0
1213
*/
1314
@Retention(RetentionPolicy.RUNTIME)
1415
@Target({ElementType.METHOD, ElementType.TYPE})

src/main/java/com/github/jonpereiradev/diffobjects/annotation/DiffOrder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
/**
99
* Defines an order for the method if necessary.
1010
*
11-
* @author jonpereiradev@gmail.com
11+
* @author Jonathan Pereira
12+
* @since 1.0
1213
*/
1314
@Retention(RetentionPolicy.RUNTIME)
1415
@Target({ElementType.FIELD, ElementType.METHOD})

src/main/java/com/github/jonpereiradev/diffobjects/annotation/DiffProperty.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
/**
99
* Maps a property on a mapping to be used on result.
1010
*
11-
* @author jonpereiradev@gmail.com
11+
* @author Jonathan Pereira
12+
* @since 1.0
1213
*/
1314
@Retention(RetentionPolicy.RUNTIME)
1415
@Target({ElementType.ANNOTATION_TYPE})

src/main/java/com/github/jonpereiradev/diffobjects/builder/DiffBuilder.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
/**
1111
* Responsible to map a class and fields to be able to generate diffs.
1212
*
13-
* @author jonpereiradev@gmail.com
13+
* @author Jonathan Pereira
14+
* @since 1.0
15+
*
1416
* @see DiffInstanceBuilder
1517
* @see DiffMappingBuilder
1618
* @see DiffConfiguration

src/main/java/com/github/jonpereiradev/diffobjects/builder/DiffConfiguration.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
/**
88
* Responsible for generate the configuration of the instance.
99
*
10+
* @author Jonathan Pereira
11+
* @since 1.0
12+
*
1013
* @see DiffBuilder
1114
* @see DiffInstanceBuilder
1215
* @see DiffMappingBuilder

src/main/java/com/github/jonpereiradev/diffobjects/builder/DiffConfigurationImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
/**
1212
* Responsible for generate the configuration of the instance.
1313
*
14+
* @author Jonathan Pereira
15+
* @since 1.0
16+
*
1417
* @see DiffBuilder
1518
* @see DiffInstanceBuilder
1619
* @see DiffMappingBuilder

0 commit comments

Comments
 (0)