Skip to content
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

Invalid patch for simplify_ternary_conditional_expressions #80

Closed
lyxell opened this issue Jul 30, 2021 · 0 comments
Closed

Invalid patch for simplify_ternary_conditional_expressions #80

lyxell opened this issue Jul 30, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@lyxell
Copy link
Owner

lyxell commented Jul 30, 2021

  101         GenericConversionService conversionService = new GenericConversionService() {
  102             @Override
  103             protected Object convertNullSource(TypeDescriptor sourceType, TypeDescriptor targetType) {
-                     return targetType.getType() == Boolean.class ? false : null;
+                     return targetType.getType() != Boolean.class && (null);
  105             }
  106         };
  107         context.setTypeConverter(new StandardTypeConverter(conversionService));
@lyxell lyxell added the bug Something isn't working label Jul 30, 2021
@lyxell lyxell closed this as completed Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant