Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Simplify annotation value retrieval method
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <bluhmdj@ornl.gov>
  • Loading branch information
dbluhm committed May 11, 2020
1 parent 617bd98 commit c66ab8e
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -283,9 +283,7 @@ private static <T extends Throwable> void unwrap(final Optional<T> e) throws T {
* @return list of AnnotationValue
*/
private List<AnnotationValue> getAnnotationValuesForMirror(final AnnotationMirror mirror) {
final Map<? extends ExecutableElement, ? extends AnnotationValue> values = elementUtils
.getElementValuesWithDefaults(mirror);
return values.entrySet().stream()
return elementUtils.getElementValuesWithDefaults(mirror).entrySet().stream()
.map(entry -> entry.getValue())
.collect(Collectors.toList());
}
Expand Down

0 comments on commit c66ab8e

Please sign in to comment.