-
-
Notifications
You must be signed in to change notification settings - Fork 1k
simplified some expressions, redundant expressions removed #3292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
filiphr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this cleanups @anton-erofeev. I only have one small remark, see my comment
| for (Iterator<? extends TypeMirror> iterator = unusedPermittedSubclasses.iterator(); | ||
| iterator.hasNext(); ) { | ||
| if ( ctx.getTypeUtils().isSameType( iterator.next(), subClassOption.getSource() ) ) { | ||
| iterator.remove(); | ||
| } | ||
| } | ||
| unusedPermittedSubclasses.removeIf( | ||
| typeMirror -> ctx.getTypeUtils().isSameType(typeMirror, subClassOption.getSource())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like this change because it means that a new anonymous class has to be created to capture the subClassOption. I prefer not to create new objects for things like this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I reverted this change, thanks
c0a94f0 to
cca864f
Compare
|
@anton-erofeev seems like there are some formatting issues. Can you have a look at it please? |
updated but it looks like I can't run checks |
|
You are contributing for the first time @anton-erofeev and that's why the checks don't run automatically. I need to approve them in order for them to run. Just did that, if everything is OK, we'll merge this. For your next contributions this won't be necessary. |
processor/src/test/java/org/mapstruct/ap/test/nestedbeans/HouseDto.java
Outdated
Show resolved
Hide resolved
|
thank @anton-erofeev |
No description provided.