mapstruct / mapstruct-idea

An IntelliJ IDEA plugin for working with MapStruct
Other
141 stars 38 forks source link

use findDeclaredAttributeValue to get PsiAnnotationMemberValue directly #138

Closed hduelme closed 1 year ago

hduelme commented 1 year ago

I used findDeclaredAttributeValue because we are only interested in type PsiAnnotationMemberValue and function findDeclaredAttributeValue returns it directly. This way we can avoid a few unnecessary null checks. Also, I have removed the convert from stream to list and back again, in the function findReferencedMappers. Lastly, I added the missing null/notNull-annotations.

filiphr commented 1 year ago

Really nice @hduelme. Thanks a lot for this nice cleanup