Skip to content

Conversation

@filiphr
Copy link
Member

@filiphr filiphr commented Aug 21, 2022

Fixes #2897

Copy link
Contributor

@sjaakd sjaakd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion for naming added


for ( TypeMirror extraImport : mapperOptions.imports() ) {
Type type = typeFactory.getType( extraImport );
Type type = typeFactory.getAlwaysImportedType( extraImport );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would explicit be a better term? Or even explicitImportByMappingAnnotation..

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some javadoc otherwise..

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I named it getAlwaysImportedType because we might need to use it for something else in the future. You never know what can happen.

I'll add Javadoc though

@filiphr filiphr merged commit 237543c into mapstruct:main Aug 24, 2022
@filiphr filiphr deleted the 2897 branch August 24, 2022 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing import of nested class

2 participants