Skip to content

Commit 98fa10a

Browse files
committed
Merge branch 'master' of https://[email protected]/apache/commons-lang.git
2 parents 5ae1415 + 7874166 commit 98fa10a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/main/java/org/apache/commons/lang3/builder/DiffBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@
4141
*
4242
* ...
4343
*
44-
* public DiffResult diff(Person obj) {
44+
* public DiffResult<Person> diff(Person obj) {
4545
* // No need for null check, as NullPointerException correct if obj is null
46-
* return new DiffBuilder.<Person>builder()
46+
* return DiffBuilder.<Person>builder()
4747
* .setLeft(this)
4848
* .setRight(obj)
49-
* .setStyle(ToStringStyle.SHORT_PREFIX_STYLE))
49+
* .setStyle(ToStringStyle.SHORT_PREFIX_STYLE)
5050
* .build()
5151
* .append("name", this.name, obj.name)
5252
* .append("age", this.age, obj.age)

src/main/java/org/apache/commons/lang3/builder/ReflectionDiffBuilder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,16 @@
4343
* boolean smoker;
4444
* ...
4545
*
46-
* public DiffResult diff(Person obj) {
46+
* public DiffResult<Person> diff(Person obj) {
4747
* // No need for null check, as NullPointerException correct if obj is null
48-
* return new ReflectionDiffBuilder.<Person>builder()
48+
* return ReflectionDiffBuilder.<Person>builder()
4949
* .setDiffBuilder(DiffBuilder.<Person>builder()
5050
* .setLeft(this)
5151
* .setRight(obj)
5252
* .setStyle(ToStringStyle.SHORT_PREFIX_STYLE)
5353
* .build())
5454
* .setExcludeFieldNames("userName", "password")
55+
* .build()
5556
* .build();
5657
* }
5758
* }

0 commit comments

Comments
 (0)