Skip to content

Commit

Permalink
Merge pull request #120 from kirikaza/field-and-setter-param-both-ann…
Browse files Browse the repository at this point in the history
…otated

Fixed exception when a field and its setter's parameter both have annotations
  • Loading branch information
mtedone committed Jul 30, 2015
2 parents cc1fee6 + 5b5b8e1 commit 31a4d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/uk/co/jemos/podam/api/PodamUtils.java
Expand Up @@ -435,7 +435,7 @@ public static List<Annotation> getAttributeAnnotations(final Field attribute,

List<Annotation> retValue;
if (annotations != null && annotations.length != 0) {
retValue = Arrays.asList(annotations);
retValue = new ArrayList<Annotation>(Arrays.asList(annotations));
} else {
retValue = new ArrayList<Annotation>();
}
Expand Down

0 comments on commit 31a4d9b

Please sign in to comment.