Skip to content

Commit d0b49b2

Browse files
committed
documentation fixes
1 parent ec4582d commit d0b49b2

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 jonpereiradev
3+
Copyright (c) 2018 Jonathan Pereira
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ private DiffObjects() {
2929
*
3030
* @param <T> type of object been compared.
3131
* @param beforeState the before object state to compare with after object.
32-
* @param afterState the after object state to compare with befor object.
32+
* @param afterState the after object state to compare with before object.
3333
*
3434
* @return a list with the results of the diff.
3535
*/
@@ -45,7 +45,7 @@ public static <T> List<DiffResult> diff(T beforeState, T afterState) {
4545
*
4646
* @param <T> type of object been compared.
4747
* @param beforeState the before object state to compare with after object.
48-
* @param afterState the after object state to compare with befor object.
48+
* @param afterState the after object state to compare with before object.
4949
* @param configuration the configuration of the diff.
5050
*
5151
* @return a list with the results of the diff.
@@ -75,7 +75,7 @@ public static <T> List<DiffResult> diff(T beforeState, T afterState, DiffConfigu
7575
*
7676
* @param <T> type of object been compared.
7777
* @param beforeState the before object state to compare with after object.
78-
* @param afterState the after object state to compare with befor object.
78+
* @param afterState the after object state to compare with before object.
7979
*
8080
* @return {@code true} if no difference exists between the objects or {@code false} otherwise.
8181
*/
@@ -91,7 +91,7 @@ public static <T> boolean isEquals(T beforeState, T afterState) {
9191
*
9292
* @param <T> type of object been compared.
9393
* @param beforeState the before object state to compare with after object.
94-
* @param afterState the after object state to compare with befor object.
94+
* @param afterState the after object state to compare with before object.
9595
* @param configuration the configuration of the diff.
9696
*
9797
* @return {@code true} if no difference exists between the objects or {@code false} otherwise.

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88

99

1010
/**
11-
* A method annotated with this will be checked for difference between two objects. When annotated on a method without value(), the equals method of this object
12-
* will be executed. When annotated on a method with value(), the property will be evaluated for equality.
11+
* A method annotated with this will be checked for difference between two objects. When annotated on a method without
12+
* value(), the equals method of this object will be executed. When annotated on a method with value(), the property
13+
* will be evaluated for equality.
1314
*
1415
* @author Jonathan Pereira
1516
* @since 1.0

src/test/java/com/github/jonpereiradev/diffobjects/strategy/DiffCollectionStrategyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void testCollectionStrategyDifferentObjectsDifferentSizeList() {
105105
Assert.assertNotNull(diffResult.getAfter());
106106
Assert.assertEquals(1, beforeCollection.size());
107107
Assert.assertEquals("Object A.A", beforeCollection.get(0).getName());
108-
Assert.assertTrue(afterCollection.size() == 2);
108+
Assert.assertEquals(2, afterCollection.size());
109109
Assert.assertEquals("Object B.A", afterCollection.get(0).getName());
110110
Assert.assertEquals("Object B.B", afterCollection.get(1).getName());
111111
}

0 commit comments

Comments
 (0)