Skip to content
Snippets Groups Projects
Commit f1235daa authored by ribeaudc's avatar ribeaudc
Browse files

minor:

- Javadoc added.

SVN: 3038
parent 6c0e6c77
No related branches found
No related tags found
No related merge requests found
...@@ -43,12 +43,15 @@ public final class ClassUtils ...@@ -43,12 +43,15 @@ public final class ClassUtils
/** /**
* For given <code>Class</code> returns a set of field names that are annotated with {@link Mandatory}. * For given <code>Class</code> returns a set of field names that are annotated with {@link Mandatory}.
* <p>
* Never returns <code>null</code> but could return an empty set.
* </p>
*/ */
public final static Set<String> getMandatoryFields(Class<?> clazz) public final static Set<String> getMandatoryFields(Class<?> clazz)
{ {
Set<String> set = new HashSet<String>(); final Set<String> set = new HashSet<String>();
List<Field> fields = ClassUtils.getMandatoryFieldsList(clazz); final List<Field> fields = ClassUtils.getMandatoryFieldsList(clazz);
for (Field field : fields) for (final Field field : fields)
{ {
set.add(field.getName()); set.add(field.getName());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment