Skip to content

Commit e156e69

Browse files
author
Gabor Nagy
committed
Javadoc clarifies field name requirements + typo.
1 parent 46d4b45 commit e156e69

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/de/danielbechler/diff/introspection/PropertyAccessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public String getPropertyName()
8484
}
8585

8686
/**
87-
* Private function to allow looking for the field recursivery up the superclasses.
87+
* Private function to allow looking for the field recursively up the superclasses.
8888
*
8989
* @param clazz
9090
* @return

src/main/java/de/danielbechler/diff/node/DiffNode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,8 @@ public final void visitParents(final Visitor visitor)
446446
/**
447447
* If this node represents a bean property this method returns all annotations of its field.
448448
*
449+
* Only works for fields having a name that matches the name derived from the getter.
450+
*
449451
* @return A set of annotations of this nodes property field or an empty set.
450452
*/
451453
public Set<Annotation> getFieldAnnotations()

0 commit comments

Comments
 (0)